joblo37pam
2[H]4U
- Joined
- Jun 28, 2002
- Messages
- 2,211
I have a web app that uses the asp.net membership provider for authentication. It was working great, but I just moved to a new VPS host (upgraded from 2003 to 2008R2), and now the authentication timeout settings are not working correctly and users have to re-login every few minutes of inactivity. I haven't been able to pin down exactly how long it takes. I also have a SBS2008 (nonr2) that I am using to test code before I publish it, and everything is working correctly there.
Here is the authentication code in the root web.config:
From what I can see, all of the IIS settings are the same, except that the R2 VPS is using IIS 7.5 and the test box is 7.0
The app is running in it's own dedicated pool that only recycles every night at midnight (I realize that this negates the 7 day timeout in the code above). The .aspxauth cookies that are set locally show the correct 7 day expiration, so it should work, right?
The only relevant info I've been able to stir up myself doesn't have a resolution: here
Any help or suggestions would be appreciated. I'm a self-taught, part-time coder, so I'm at your mercy. Thanks.
Edit: The timeout is currently around 5 minutes
Here is the authentication code in the root web.config:
Code:
<authentication mode="Forms">
<forms loginUrl="~/users/login.aspx" timeout="10080"/>
</authentication>
From what I can see, all of the IIS settings are the same, except that the R2 VPS is using IIS 7.5 and the test box is 7.0
The app is running in it's own dedicated pool that only recycles every night at midnight (I realize that this negates the 7 day timeout in the code above). The .aspxauth cookies that are set locally show the correct 7 day expiration, so it should work, right?
The only relevant info I've been able to stir up myself doesn't have a resolution: here
Any help or suggestions would be appreciated. I'm a self-taught, part-time coder, so I'm at your mercy. Thanks.
Edit: The timeout is currently around 5 minutes
Last edited: