This is a discussion on "Session Timeout problem" within the ASP.NET Forum section. This forum, and the thread "Session Timeout problem are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Session Timeout problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Session Timeout problem
Hi all,
How can I set the session TimeOut from inside the Code? Also is there a way to make the session variables Expires after a number of minutes of inactivity. i.e. I want to make the session variables expires after the user stays inactive for 20 minutes. I am using ASP.net 2. Thanks in advance |
|
|
|
|||
|
Re: Session Timeout problem
|
|
|||
|
Re: Session Timeout problem
in your global.asax in the session_start function put the following: -
Session.timeout = 20 Or you can set it to be sliding depending on the users activity |
![]() |
| Tags |
| state managment |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP Session *not your usual* problem | ysamu | PHP Forum | 0 | Mar 28th, 2008 10:00 |
| Generating ID or Session Problem? Options | chlad | Classic ASP | 2 | Aug 21st, 2006 11:47 |
| session timeout unexpectedly | seemagaur | ASP.NET Forum | 0 | Oct 10th, 2005 17:19 |
| session problem | fender79 | Classic ASP | 8 | May 18th, 2005 02:26 |
| problem with Session variable | andrew_perez5 | Classic ASP | 0 | Jan 24th, 2005 03:42 |