I’m using ASP.NET Membership everywhere in the site like logging, creating account etc. How do I set up for it to use a cookie. For instance, once the user logs in keep the user logged in for like 2 hours using cookies. Right now it seems it is not using cookies. Do I set something in the web.config of the webpage. How do I also specify how long until the cookie expires? Is cookies supported/integrated in asp.net membership by the way?
I’m using ASP.NET Membership everywhere in the site like logging, creating account etc. How
Share
Are you using Forms Authentication? http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.setauthcookie(v=vs.90).aspx
Whatever auth provider you use is responsible for setting the cookie (if any) and determining when the login session expires.
For asp.net Forms authentication in your web.config: