This is a discussion on session ID question within the PHP Language forums, part of the PHP Programming Forums category; Hi, Is there a session ID that exists when you start a session on a PHP page? I have noticed ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On 6 Sep 2004 05:03:45 -0700 (more or less), bissatch@yahoo.co.uk (mr_burns)
wrote: >Hi, > >Is there a session ID that exists when you start a session on a PHP >page? I have noticed that it sometimes is passed in the URL. How do I >get this session ID even if it doesnt exist in the URL? Cheers > >Burnsy A session is created only if you create one. To see the contents of a session, session_start(); print("<pre>"); echo "Session ID: ",session_id(),"\n"; print_r($_SESSION); print("<pre>"); see http://www.php.net/manual/en/function.session-id.php |
![]() |
| Thread Tools | |
| Display Modes | |
|
|