title: page can be logged in without log in verification
body: <p>I'm writing a log in page using php sessions. The thing is that, after log in, if i exit the page without sign out, i can just enter the page withou log in, the next time. I used a session variable containing the user name and i had it checked across every page if the session is there. I found out that the reason why I can go about without log in is because the session hasn't been unset. Can any one tell me what to do? I want a simple solution where the browser automatically logs out when tab is closed or not allow the user to exit without signout??</p>