Forums
This topic is locked
Session.Timeout with Redirect - Please Help!!!
Posted 21 Jul 2003 17:40:15
1
has voted
21 Jul 2003 17:40:15 Katherine Williams posted:
Hello,I really hope that someone can help me out with this. It seems like it should be simple to do, but I'm not sure how.
I simply want to close a window if a user has exceeded the idle time using the Session.Timeout. This is what I've come up with:
<%Session.Timeout=30
if (Session.Timeout=0){
%>
<script type="text/javascript">
location=("javascript:window.close()"
}
</script>
<%}%>
...but it doesn't work. Is there a way to close a window after the Session.Timeout has expired using ASP? If not, is there a way to do so using ASP w/JavaScript? Any help is greatly appreciated.
KWilliams