There is another solution to this, If you want a better and secure site after the session timesout you can have the page LogOut back to the Login Page if yu use one.
Time the session timeout to 5 min (in the web.config file) which is 300000(miliseconds) then add this script below to the page
and in that page if there is no mouse movement or keyboard movement the page logsout to the link below....
<script>
if (navigator.appName=='Netsc
if (navigator.appName=='Netsc
TId = ""; // make var global in scope
function resetTimer() {
clearTimeout(TId); //resets the timer once the mouse moves
TId = setTimeout('location=\'htt
}
document.onkeypress=resetT
document.onmousemove=reset
</script>
If theres any questions letme know....:)
MS
Main Topics
Browse All Topics





by: mogunPosted on 2004-02-03 at 21:58:04ID: 10268621
The best solution will be to increase the session time out value...
The Reloading of the values in each page will not work. If you reload and then leave the page for a long time without any submission, the time out will still occur..
So your first solution will be the best.
Cheers
Mohan