deharris2003
Programmer
I'm not really good with javascript. I have a asp based site that uses session variables to track the current user. Problem is that after 20 minutes the session variables expire. I want to find away to alert the user to re-logon. My current test code will redirect the user but it does not show the message to the user. Any help is appreciated. here is what I currently have.
<%If Session("ID" = "" then %>
<script LANGUAGE='Javascript'>
alert('To ensure security, Please Re-enter your ID and Password!')
top.location.href="logon.asp"
</script>
<%End IF%>
<%If Session("ID" = "" then %>
<script LANGUAGE='Javascript'>
alert('To ensure security, Please Re-enter your ID and Password!')
top.location.href="logon.asp"
</script>
<%End IF%>