sgadson
Posts: 45
|
Posted: 08/30/2004, 6:06 PM |
|
Can anyone send me the code for a vb.net application to change the time it takes before a user is automatically logged out of my web site.
I believe that currently my users are being logged out after 15 mins of inactivity.
Can anybody help?
_________________
Shawn |
|
|
Stan
|
Posted: 08/31/2004, 12:53 AM |
|
Shawn
Try the folowing code in Page After Initialize event
Session.Timeout = 40 ' minutes
Stan
|
|
|
E43509
Posts: 283
|
Posted: 08/31/2004, 5:32 AM |
|
In addtion to your web.config file can/may have settings for the entire app
please look for this code in your web.config
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="60"
/>
|
|
|
sgadson
Posts: 45
|
Posted: 08/31/2004, 8:05 AM |
|
Thanks Stan!
The code in the Page After Initialize event seems to be working perfectly.
E43509:
I wasn't able to locate the code you pointed out in my web.config. Any ideas why it wouldn't be there? Is this code that Code Charge automatically sets up in the web.config?
_________________
Shawn |
|
|