RE: [PHP] can't restart session

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: > ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-21-2003
Chris W. Parker
 
Posts: n/a
Default RE: [PHP] can't restart session

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.
Reply With Quote
  #2 (permalink)  
Old 07-21-2003
Cpt John W. Holmes
 
Posts: n/a
Default Re: [PHP] can't restart session

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...

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:04 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0