How to set a session lifetime?

Topics: Core, General
Apr 13, 2012 at 5:45 AM
Edited Apr 13, 2012 at 7:11 AM

Hello!

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!

<tt></tt>

Developer
Apr 13, 2012 at 6: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 10:14 AM

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