Forums

PHP

This topic is locked

PHPSESSID

Posted 05 Aug 2001 15:28:58
1
has voted
05 Aug 2001 15:28:58 Michael O'Neill posted:
I want to be able to see / save the session id but so far I have been unable to do this.
I am using the latest version of Phakt.
I thought this might work (NOT)
echo($HTTP_SESSION_VARS["PHPSESSID"])

any help appreciated.
Mike


Replies

Replied 05 Aug 2001 18:23:25
05 Aug 2001 18:23:25 Tim Green replied:
The constant SID contains this information.

You can get access to it by using :-

<?php echo SID; ?>

The PHP Session ID isn't actually stored as a variable within the HTTP_SESSION_VARS array, as you need that id to actually access that array.

Hope this helps

Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 08 Aug 2001 19:54:19
08 Aug 2001 19:54:19 Michael O'Neill replied:
Many Thanks
Mike.

Reply to this topic