abacus
08-11-2004, 07:09 PM
An administrator logs in. By virtue of Admin's UserID & pwd, Session("AccessLevel") = "4"; and the Administrator's Menu is displayed. If Session("AccessLevel") less than "4" then the page is Response.Redirect'd back to Login.
The Admin starts the Time Clock from a selection on the Admin Menu; and upon entering the Time Clock page, the Session("AccessLevel") is changed to "".
If the user, while on the Time Clock page, decides to click the browser's BACK button ( or Alt-LeftArrow), the user, who has an AccessLevel less than 4, can get to the Admin Menu... which I don't want to happen.
On the AdminMenu.asp page, I've tried: <meta http-equiv="Expires" content="-1">, <meta http-equiv="Expires" content="0"> , and <meta http-equiv="Expires" content="01/01/2000">... all to no avail.
What's worse, the user can BACK Button or <Alt-LeftArrow> one more time, to the Login page, where the User ID is as the Admin had entered it, and the pwd textbox awaits a valid pwd. If the user clicks the FORWARD Button or <Alt-RightArrow>, the user overrides the need to enter a pwd; and is presented with the full Admin Menu from cache (with AccessLevel = 4, no less!) The opening lines of the AdminMenu.asp are:
<% If Session("AccessLevel") < "4" Then
Response.Redirect "Login.asp"
End if
%>
But these lines are ignored on the cache read!
How do I prevent an ASP page that is reloaded from the browser's cache from being displayed/functional???
The Admin starts the Time Clock from a selection on the Admin Menu; and upon entering the Time Clock page, the Session("AccessLevel") is changed to "".
If the user, while on the Time Clock page, decides to click the browser's BACK button ( or Alt-LeftArrow), the user, who has an AccessLevel less than 4, can get to the Admin Menu... which I don't want to happen.
On the AdminMenu.asp page, I've tried: <meta http-equiv="Expires" content="-1">, <meta http-equiv="Expires" content="0"> , and <meta http-equiv="Expires" content="01/01/2000">... all to no avail.
What's worse, the user can BACK Button or <Alt-LeftArrow> one more time, to the Login page, where the User ID is as the Admin had entered it, and the pwd textbox awaits a valid pwd. If the user clicks the FORWARD Button or <Alt-RightArrow>, the user overrides the need to enter a pwd; and is presented with the full Admin Menu from cache (with AccessLevel = 4, no less!) The opening lines of the AdminMenu.asp are:
<% If Session("AccessLevel") < "4" Then
Response.Redirect "Login.asp"
End if
%>
But these lines are ignored on the cache read!
How do I prevent an ASP page that is reloaded from the browser's cache from being displayed/functional???