Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If user does not interact with the browser for a given time interval suppose 10 mins. Then I want the page will redirected to the error.aspx page. If the user keep his interaction with the browser continuously then the session time out is not occurred. How can I do this ?
Please Give me the answer.
Posted
Updated 16-Dec-11 20:55pm
v2

1 solution

Use a timer in Javascript - the application at the server will terminate when the page is loaded, so Javascript is the best way here (and it should work in all browsers)
XML
<html>
<head>
<script type="text/javascript">
function delayedRedirect(){
    window.location = "/error.aspx"
}
</script>
</head>
<body onLoad="setTimeout('delayedRedirect()', 600000)">
</body>
</html>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900