OutInLeftField
Programmer
Hello Everyone,
I have an application that uses active directory authentication. I also use session variables to timeout the application after one minute for testing. When I finally get it to work, I'll set it for five minutes. Now the problem.
Page that sets up session.
session.Timeout = 5.
response.redirect "menu.asp"
Menu.asp page contents
<%if session("group") = "" or isnull(session("group")) then%>
<script>
history.forward();
</script><%
response.redirect " end if%>
<html>
<head>
<!--#include file="authenticate.asp" -->
<META HTTP-EQUIV="refresh" content="80;">
.
.
.
rest of code of page
The include file is the code that checks the login against Active Directory. The refresh line refreshes the page after 80 seconds.
What happens is after 80 seconds, the page refreshes. but the page doesn't redirect to the "notallowed.asp" page. But on the second time it refreshes, the page is redirected and the history.forward(1) prevents the user from using back button.
How can I have the page redirect AFTER the First Refresh not the second??
Thank you
I have an application that uses active directory authentication. I also use session variables to timeout the application after one minute for testing. When I finally get it to work, I'll set it for five minutes. Now the problem.
Page that sets up session.
session.Timeout = 5.
response.redirect "menu.asp"
Menu.asp page contents
<%if session("group") = "" or isnull(session("group")) then%>
<script>
history.forward();
</script><%
response.redirect " end if%>
<html>
<head>
<!--#include file="authenticate.asp" -->
<META HTTP-EQUIV="refresh" content="80;">
.
.
.
rest of code of page
The include file is the code that checks the login against Active Directory. The refresh line refreshes the page after 80 seconds.
What happens is after 80 seconds, the page refreshes. but the page doesn't redirect to the "notallowed.asp" page. But on the second time it refreshes, the page is redirected and the history.forward(1) prevents the user from using back button.
How can I have the page redirect AFTER the First Refresh not the second??
Thank you