Credentials not remembered on login.aspx

Topics: Support Request
Apr 12, 2010 at 5:17 PM

Hi

 

I have setup the latest dasBlog on shared hosting with GoDaddy (asp.net 2.0, IIS7): www.danielmoth.com/Blog/

 

Every time I try to login (http://dasblog.info/LoggingIn.aspx), I have to re-enter my user name and password. The "Username" and "Password" text boxes do not remember anything of what I have entered in the past and the "Remember Login" checkbox on that page seems to be ignored (I keep checking it with no positive effect).

 

This is tedious and annoying - any idea how to fix it?

 

Cheers

Daniel

Apr 28, 2010 at 1:10 PM
I'm able to see this same behavior as well.
May 2, 2010 at 2:00 PM

I ahve the same behavior... Would be nice to have that fixed...

May 22, 2010 at 8:07 PM

This was a change from 1.1 to 2.0 of .Net.  MS considered creating a cookie of 50 years to be a security risk.  This is what happened for you in 1.1 when selecting the remember me checkbox.  In 2.0 the NEW default is to set it to whatever your timeout setting is in the Forms tag in your web.config OR the default of 30 minutes.  You can fix this by changing your forms tag timeout value to something large. 
<forms name=".DASBLOGAUTH" protection="All" timeout="129600" path="/" cookieless="UseCookies" /> for example with set the cookie to last 3 months.  If you check remember me in this setup your cookie will last 3 months. 
You can also add sliding expiration to true which will update the cookie to a new 3 month window every time you login...
<forms name=".DASBLOGAUTH" protection="All" timeout="129600" slidingExpiration="true" path="/" cookieless="UseCookies" />

To recreate the behavior of .Net 1.1 you can use Tim's example under the issue tracker "Remember Login doesn't work" or item #2951:

http://dasblog.codeplex.com/WorkItem/View.aspx?WorkItemId=2951