Re: How to get Session ID
| From: | Ian Ferger | Date: | Fri, 14 Dec 2001 20:07:08 +0000 |
| Subject: | Re: How to get Session ID | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-15040@lists.php.net to get a copy of this message | ||
there is a very cryptic function for getting the session id:
session_id()
if you pass it a value, it will also set the id
"Chris Payne" <chris@planetoxygene.com> wrote in message
news:000c01c184ef$53abc220$0200a8c0@chris...
Hi there everyone,
I know how to get the session ID in the url using <?="$SID"?>, but how do I
copy the current SessionID into a Var? I need to store the sessionID so
that I can reference items added to a database during a particular session,
so people can continue shopping after they have added their item to the DB.
I have the DB and everything working great (God I love PHP and MySQL :-)
Anyway help would be appreciated.
Thanks also for all the recent help everyone, you are all hero's in my book
:-)
Chris