OK, I am re-designing my website and in the process somewhere, something is just not right.
I was using sessions before and never had a problem until I redesigned it.
This is what used to happen-
The member would log-in.
The member would then enter the member only area.
Each page requried a certain level of authorization (ie- admin, regular user, miniadmin).
The member was able to hit the back button and go to the previous pages.
NOW however, when I hit the back button I get the denied page that I have set up to prevent unauthorized access. I have logged in and everything but I can only go to links but I cannot hit the back button 🙁
Can someone tell me if it is my code or something else?
PS- I am also implementing a new javascript top navigation bar, but i did not hink that would have anything to do with it.
HERE IS THE CODE-
(when they log in it registers the variables $ID, $auth, $status, $rep, $zone and $uu (Username)in a session.
<?php
session_start();
IF ($status !='1') {
header("Location:http://www.mysite.com/ACCESS/denied.htm");
exit; }
?>
This is simple I know, but it worked before, but now it doesn't. Does anyone know why I can not hit the back button? and if so, do you know how I can include a workaround for it?