In the asp.net 2.0 betas, if you used the "remember me" checkbox on the login control form, you'd never have to login again until you specifically logged out (no matter how many visits or time
elapsed). I don't see this with the RTM. I see it works for a short while then all of a sudden I have to login again. It's like it's expiring as though I set a timeout on the login cookie which I have not. I am using the "remember me" checkbox on the login
control, and it did work on the beta 2 framework.
Anyone know of any changes to this? I see nothing in the RTM documentation indicating the RememberMeSet property has changed.
Well, not sure if this helps or not, but I have the "Personal Website Starter Kit" running on my personal website.... and it uses the login control and the "Remember Me" feature indeed does work
"If you make it idiot proof, they'll build a better idiot"
The problem you are running into is that the persisted forms-auth timeout cookie changed between ASP.NET V1.1 and ASP.NET V2.0. The default value is not 30 minutes - which is probably too short for what you want.
I'm not talking about going from 1.1 to 2.0. I'm talking about 2.0 beta -> 2.0 RTM. With the beta, it would NEVER require a login again, even weeks later, unless I purposely logged out. In the RTM, it does time out.
My understanding of the way the "remember me" function was supposed to work in 2.0 was the way it worked in the beta, not requiring logins every return visit to the site, instead of the way it is acting in the RTM. I would think what you describe in your blog
applies to those who DON'T use the "remember me" option rather than those who do. That was my experience in the 2.0 beta anyway.
And the fact that Stephen isn't seeing what I'm seeing is even more confusing.
The default timeout changed between Beta2 and RTM - which is why you didn't see it in Beta2 but do see it now. My blog post goes into a little more detail on why the default value changed. If you set it in your web.config file to the value you want you will
see the behavior you are after.
Okay. Thanks for the information! I just wanted to clarify that not only the change from 1.1 to 2.0, but the change from beta 2.0 to RTM 2.0 was normal. Thanks for the confirmation. [:)]
Scott W
Member
650 Points
130 Posts
RTM "remember me" not working on login control?
Nov 23, 2005 01:21 AM|LINK
Anyone know of any changes to this? I see nothing in the RTM documentation indicating the RememberMeSet property has changed.
MorningZ
Star
8849 Points
1822 Posts
Re: RTM "remember me" not working on login control?
Nov 23, 2005 11:30 AM|LINK
Scott W
Member
650 Points
130 Posts
Re: RTM "remember me" not working on login control?
Nov 23, 2005 03:16 PM|LINK
ScottGu
All-Star
18320 Points
2008 Posts
Microsoft
Moderator
Re: RTM "remember me" not working on login control?
Nov 23, 2005 03:41 PM|LINK
Here is an blog entry I wrote that walks through how to change this: http://weblogs.asp.net/scottgu/archive/2005/11/08/430011.aspx
You can make a simple update in your web.config file to set it to any value you want.
Hope this helps,
Scott
Scott W
Member
650 Points
130 Posts
Re: RTM "remember me" not working on login control?
Nov 24, 2005 04:18 AM|LINK
Yeah, it helps, but...
I'm not talking about going from 1.1 to 2.0. I'm talking about 2.0 beta -> 2.0 RTM. With the beta, it would NEVER require a login again, even weeks later, unless I purposely logged out. In the RTM, it does time out.
My understanding of the way the "remember me" function was supposed to work in 2.0 was the way it worked in the beta, not requiring logins every return visit to the site, instead of the way it is acting in the RTM. I would think what you describe in your blog applies to those who DON'T use the "remember me" option rather than those who do. That was my experience in the 2.0 beta anyway.
And the fact that Stephen isn't seeing what I'm seeing is even more confusing.
ScottGu
All-Star
18320 Points
2008 Posts
Microsoft
Moderator
Re: RTM "remember me" not working on login control?
Nov 24, 2005 04:51 AM|LINK
The default timeout changed between Beta2 and RTM - which is why you didn't see it in Beta2 but do see it now. My blog post goes into a little more detail on why the default value changed. If you set it in your web.config file to the value you want you will see the behavior you are after.
Hope this helps,
Scott
Scott W
Member
650 Points
130 Posts
Re: RTM "remember me" not working on login control?
Nov 24, 2005 08:45 AM|LINK
Regards,
Scott