This is a discussion on RE: [PHP] can't restart session within the PHP General forums, part of the PHP Programming Forums category; CPT John W. Holmes <mailto:holmes072000@charter.net> on Monday, July 21, 2003 12:39 PM said: > ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
CPT John W. Holmes <mailto:holmes072000@charter.net>
on Monday, July 21, 2003 12:39 PM said: > You have the same session id, but there is no data in it, so what's > the problem? The problem is that the server is still regarding it as the same session even if a different user comes along and logs in. > You should still consider the user logged out since the > session is empty, right? Right, but the server isn't thinking of it this way. > If you really want, upon logout, make a new session id with > session_id(), md5() and uniqid(). This might actually work quite well. Chris. |
|
|||
|
From: "Chris W. Parker" <cparker@swatgear.com>
> > CPT John W. Holmes <mailto:holmes072000@charter.net> > > on Monday, July 21, 2003 12:39 PM said: > > > > You should still consider the user logged out since the > > session is empty, right? > > Right, but the server isn't thinking of it this way. Then something is wrong in your code. If you properly clear the session of all of it's contents, then even if I pass the same session id on the next page request, it should see me as a new user since there is no data in the session. ---John Holmes... |