README.md
December 5, 2022 ยท View on GitHub
Description
Warn users about Session Timeout 5 minutes before it happens.
More Info
| Submitted On | |
| By | Igor Krupitsky |
| Level | Beginner |
| User Rating | 4.7 (28 globes from 6 users) |
| Compatibility | ASP (Active Server Pages), HTML |
| Category | Miscellaneous |
| World | ASP / VbScript |
| Archive File |
Source Code
<html>
<head>
<script language="javascript">
function WarnUserTimeout()
{
if (window.confirm('Your session will expire in 5 minutes. Do you want to continue working?'))
{
window.history.go(0)
}
}
</script>
</head>
<body OnLoad="window.setTimeout('WarnUserTimeout()',(<%=session.timeout%>-5)*60*1000)">
Some Text...
</body>
</html>