I am running php 4.0.0 & win 98, I have got sessions working fine but I wan't to add the PHPSESSID to the URL in case the user's browser doesn't accept cookies. If I run my script locally and don't accept the cookie then I get the Session ID written in my Tmp file but I can't get a value for PHPSESSID to add to the URL, phpinfo() shows both the local and master value of session.name as PHPSESSID. If I echo $PHPSESSID on my page then its blank, what am I doing wrong? As a newbie any advice would be appreciated.
Sessions - Can't see PHPSESSID
try echoing $HTTP_SESS_VARS['PHPSESSID'] and see if that will return anything.
8 months later
Even this does not seem to be working. I first started session using session_start(). Still I cannot see PHPSESSID value. But session gets created as I saw from the /tmp directory. It contained all the values required by me.