Session Question

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

Hi all,

I've been given an old asp.net project to update. The project uses its
own authentication system and small session object to maintain state -
it's running off a mysql server.
One issue with this is session timeout occuring for logged in users.
Currently, session timeout is set at 20.
I need to extend the session timeout of rthose logged in. Would the
following work?
In the session object creation (which means login was a success), if I
place the following code:

HttpContext.Current.Session.Timeout = 7600;

Would this set the session of all logged in users to 12hrs, but keep
unlogged in users to 20 minutes?
if not, any over work arounds to this.

Thanks.
 
Back
Top