Session Question

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top