RE: [PHP] can't restart session

2003-07-22 Thread Chris W. Parker
Adrian Portsmouth on Tuesday, July 22, 2003 12:19 AM said: > As I said, you are not calling your session user_info, the only way > to name a session is to use session_name() BEFORE session_start() if > you are not using a session_name call then change your setcookie

RE: [PHP] can't restart session

2003-07-22 Thread Adrian Portsmouth
tion.session-regenerate-id.php HTH Ade -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 21 July 2003 22:18 To: Chris W. Parker; [EMAIL PROTECTED] Subject: Re: [PHP] can't restart session > In my first post I showed that one of the versions of the logou

Re: [PHP] can't restart session

2003-07-21 Thread CPT John W. Holmes
> In my first post I showed that one of the versions of the logout page > that I used had this line in it. > > setcookie("user_info","",(time()-3600),"/"); > > Shouldn't that take care of the cookie? Like someone else said, that'll take care of a cookie called "user_info". Your session cookie is n

RE: [PHP] can't restart session

2003-07-21 Thread Chris W. Parker
CPT John W. Holmes on Monday, July 21, 2003 1:32 PM said: > Well, it can, and it does. I guess it's all in how you use it. If my > session id is "abcd", then when I log out, your program should erase > all of the data in the session and forget that it ever knew about

Re: [PHP] can't restart session

2003-07-21 Thread CPT John W. Holmes
> What is the point of having a unique ID for each session if the only > thing that matters is the data stored within it? Why have a session id > at all if it can't be used to uniquely track a user? Well, it can, and it does. I guess it's all in how you use it. If my session id is "abcd", then whe

RE: [PHP] can't restart session

2003-07-21 Thread Gabriel Guzman
> p.s. I'm new to this list as you may have noticed and so far this is the > only list that I've been on that doesn't use the list's address as the > return address. Do I have to manually put it in the To box each time? not at all, just use the "reply-all" feature of your mail client. gabe. --

RE: [PHP] can't restart session

2003-07-21 Thread Chris W. Parker
CPT John W. Holmes on Monday, July 21, 2003 1:05 PM said: > 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 > t

Re: [PHP] can't restart session

2003-07-21 Thread CPT John W. Holmes
From: "Chris W. Parker" <[EMAIL PROTECTED]> > > CPT John W. Holmes > > 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 s

RE: [PHP] can't restart session

2003-07-21 Thread Chris W. Parker
CPT John W. Holmes 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.

RE: [PHP] can't restart session

2003-07-21 Thread Adrian Portsmouth
arker [mailto:[EMAIL PROTECTED] Sent: 21 July 2003 20:29 To: [EMAIL PROTECTED] Subject: [PHP] can't restart session Hello, PHP 4.2.2 I'm working on a cart program right now and I can't properly log the user out. The only way I've been able to get a different session id is by c

Re: [PHP] can't restart session

2003-07-21 Thread CPT John W. Holmes
ginal Message - From: "Chris W. Parker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 21, 2003 3:28 PM Subject: [PHP] can't restart session Hello, PHP 4.2.2 I'm working on a cart program right now and I can't properly log the user out. The

[PHP] can't restart session

2003-07-21 Thread Chris W. Parker
Hello, PHP 4.2.2 I'm working on a cart program right now and I can't properly log the user out. The only way I've been able to get a different session id is by closing all browser windows and reloading the site. Scenario: I go the site I'm working on and click the login page. I have 'echo sessi