exprie a web page
-
how do i make a web page expire and send the user back to the login screen i'm useing csharp with asp.net thanks chad
in the web.config set the "timeout" attribute of the sessionstate element. eg.
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="20" />
will expire the session after 20 minutes. hope this helps. "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix -
how do i make a web page expire and send the user back to the login screen i'm useing csharp with asp.net thanks chad
Hi, As well as the above solution, if you wanted the page to automatically navigate back to the logon screen (say if someone left the page open for too long), then insert the following meta tags in your HTML pages
<html>
...
......
This would navigate back to the login page after 10mins has elapsed. Hope this helps, Andy