The above code looks like its not assigning a username and password but rather a static online bit which doesn't change, in opinion logged means it checks if the user logged so that makes him online.
You can also try, session_unregister('logged') or unset($_SESSION['logged']), cant recall using them to be honest, >.< right now im more busy in a project thats using Java.
"The reasonable man adapts himself to the conditions that surround him... The unreasonable man adapts surrounding conditions to himself... All progress depends on the unreasonable man." - George Bernard Shaw
The Following User Says Thank You to Orc For This Useful Post: