I dont get it ... I have a variable who checks to see if I there is a cookie set :
if (!isset($_COOKIE['meter_user_name'])) {
$logged = false;
}
else {
$logged = true;
}
And depending if the person is logged or not the it does stuff.
Like my login page, if he is already logged on it should show a message saying "You are already logged in!" and if he isint it should show the login form.
The problem I get is:
Lets say I login and go back to the login page it shows the form instead of the error message. And if I hit refresh, it fixs itself.
Can any one plz help me
edit: Any suggestions of were my error could be?