spewn
Programmer
- May 7, 2001
- 1,034
I'm using session to password protect a section of my website.
works great. i even have a log out that sets the session variables to blank as opposed to "loggedin" and the user is returned to the log in page.
however, if i hit the back button, i'm shown the members only section. if i hit the refresh, i'm prompted that the information needs to be resent (page cannot be refreshed without resending the info, etc) and that logs them right back in.
i've tried session->flush, clear, delete but to no avail. i set a variable to logged out, but then the can't log back in without creating a new session.
i can't figure out how to create a new session when they log out, so there's no way to back button their way back in.
any ideas or better way?
- g
works great. i even have a log out that sets the session variables to blank as opposed to "loggedin" and the user is returned to the log in page.
however, if i hit the back button, i'm shown the members only section. if i hit the refresh, i'm prompted that the information needs to be resent (page cannot be refreshed without resending the info, etc) and that logs them right back in.
i've tried session->flush, clear, delete but to no avail. i set a variable to logged out, but then the can't log back in without creating a new session.
i can't figure out how to create a new session when they log out, so there's no way to back button their way back in.
any ideas or better way?
- g