This project is read-only.

How to set a session lifetime?

Topics: Core, General
Apr 13, 2012 at 6:45 AM
Edited Apr 13, 2012 at 8:11 AM


I want to set  a session lifetime to 30 minutes.How I can do it?Now, after logging user and then after 2 hours updating this page.Still user data is not deleted.Thanks!


Apr 13, 2012 at 7:15 AM

The default authentication is using Forms authentication that uses a cookie and I think the lifetime set is 6 hours. I guess you could override the lifetime setting of that cookie somehow, look into the IAuthenticationService implementation.

Apr 16, 2012 at 11:14 AM

Yes, I changed a lifetime of session in Form authentication.Thanks!