Advertisement
3_2004-2005 Miscellaneous #147649

Session Timeout Warning

Warn users about Session Timeout 5 minutes before it happens.

AI

สรุปโดย AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ซอร์สโค้ด
original-source
<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>
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine