note 24912 added to ref.session

From: Date: Wed, 04 Sep 2002 18:53:10 +0000
Subject: note 24912 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-36119@lists.php.net to get a copy of this message
I have problem with passing the session ID, although session.use_trans_sid is set to 1 but the SID isn't inserted automaticaly in the URL if the cookies are disabled in my browser! These are my test scripts: Session1.php: <? session_start(); $IPAddress = getenv ("REMOTE_ADDR"); session_register("IPAddress"); echo "My IPAddress is $IPAddress"; ?> <a href="Session2.php"> Click here to test session variable</a> Session2.php: <? session_start(); $IPAddress = $HTTP_SESSION_VARS[IPAddress]; echo "My IPAddress is $IPAddress"; ?> Do I have to do extra coding to make the SID inserted automaticaly if the cookies are disabled? PHP Version: 4.0.6 -- http://www.php.net/manual/en/ref.session.php http://master.php.net/manage/user-notes.php?action=edit+24912 http://master.php.net/manage/user-notes.php?action=delete+24912 http://master.php.net/manage/user-notes.php?action=reject+24912

« previous php.notes (#36119) next »