PDA

View Full Version : log out code,,help!!!



onyx
10 Oct 2010, 08:18 PM
Can anyone help me??I have this website with a log in and log out menu for the user. All i want is that when the user has log out from his account,it will be redirected to the other page in the site and when the back button of the browser is press it will not go back to the account where the user status is still log in..:teleport:

tivy
11 Oct 2010, 09:41 AM
You need to destroy whatever hook your log-in script creates for the user's session. If your using session_open(), then use session_destroy(). If it's db/cookie managed, then delete the db entry or the cookie.