PHP will use the session id that your browser specifies.  If you have
php setup to store session id in cookies, every time you refresh the
page your browser is telling php what session id to use.  Then when you
close your browser, your cookies may be getting deleted.

Charles Killmer

-----Original Message-----
From: Iggy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 4:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] session ids


I have been having a huge problem with session IDs for a while now and
havn't been able to find a solution.

a simple code like this:

session_start();
echo session_id();
session_unset();
session_destroy();

run on a single php page will always give me the same id no matter how
many times I refresh the window. Now my understanding of sessions may be
wrong, but I though when you kill a session the id is killed as well.
that would mean when I refresh the page, a new id should be generated.
Unfortunately this does not happen and I can't figure out why. Only
after I shut all browser windows down, I get a new id and then the same
story again.

Now, I know that the damn session is erased from the temp folder because
I see it happen, however the id sticks to the browser for whatever
reason. I am running php4.2.3 on w2k pro and IIS

can anybody help me please?
thanx,
iggy



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to