Steve / Vgra:
You've still got a value for $_SESSION['loggedin'].
Instead of a value of 1, you've set the value to 0.
0 exists, and is a value.
You've got to UNset the variable.
Old:
if ( isset($_SESSION['loggedin'])) {
$_SESSION['loggedin'] = 0;
New:
if (...
I'm working on the same sort of thing, yes, there's a variety of them out there which i could "Borrow", but where's the fun in using someone else's code? Design your own and you learn from it so much better.
By starting on the current level and working back to root, you bypass all the other...
Forgive me for being wrong (I normally am), buuut...
The Nav bar your'e talking about.
I want to ensure I know what's going on, because it might be of help to you and/or me.. :)
Way I'd try to do this would have 3 ID fields (None of this is precise code, more theory):
ID = Int, Autonumber...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.