Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Siaplying PHPSESSID 1

Status
Not open for further replies.

jimoblak

Instructor
Oct 23, 2001
3,620
US
I am trying to add some debugging code but I cannot get PHPSESSID to display on a page. I know sessions are working because my other session data is passing fine and I can see the session files in my temp folder. What is wrong with this line?...

The session ID is <?php print (&quot;$PHPSESSID&quot;); ?>
 
I'm not 100% on this, but try

print $_SESSION(&quot;PHPSESSID&quot;);

Good luck, let me know.

-Rob
 
Oh and if that doesn't work try.

$this_id = session_id();
print $this_id;

-Rob
 
<?php print session_id(); ?> //works

Thanks skiflyer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top