Hi I’m having a problem with my website. I’m not sure how to explain it but here goes nothing.
I use this code to check to see if the user is logged in.
if (!isset($_COOKIE['meter_user_name'])) {
$logged = FALSE;
}
else {
$logged = TRUE;
}
This code is run right before the my header file and it seems when I switch from one page to an other my $logged variable doesn’t get updated unless I hit refresh (btw I use a flash menu to navigate … and I use the GetURL() function I flash to change pages).
So basically if the user logs out, for the site to recognize that he is logged out he needs to hit refresh and vice versa.
If you don’t quite understand what I mean you can check it out…
http://jaycuse.no-ip.org/metertestsite/
Username: test
Password: 123
Just navigate around after logging in and you will see that you will sometimes have to hit refresh to see that you are logged in … same goes with logging out.
And this never happened before. I just noticed this after I added my flash navigation bar (I think that might have something to do with it but I have no clue.)
If any one could help me out I would greatly appreciate it.