I recently had some trouble getting the "Remember me" check box that comes built into the ASP.NET Login control to work as advertised. A quick Google search revealed that this is a pretty common occurrence with multiple possible causes, but the one that probably gets people the most is neglecting to set the cookie timeout. If you don't, the default is a cookie that lasts for only 30 minutes. Below is a sample that will create a cookie that lasts for 30 days from the most recent login and automatically renews itself.
<authentication mode="Forms"> <forms cookieless="UseCookies" defaultUrl="Login.aspx" loginUrl="Login.aspx" name=".your_webapp_name_here.aspxauth" slidingExpiration="true" timeout="43200"> </forms> </authentication>
Remember Me
a@href@title, i, strike, u
Copyright © 2003-2008 Falafel Software Inc.
Subscribe to Falafel Blogs
The opinions expressed herein are Falafel's employees own personal opinions and do not represent Falafel Software's view in any way in case they go bananas!