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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Session ID ... Please HELP

Status
Not open for further replies.

alsaffar

Programmer
Oct 25, 2001
165
KW
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!

It should works as its mentioned at
These are my test scripts:

Session1.php:
Code:
<?
session_start();
$IPAddress = getenv (&quot;REMOTE_ADDR&quot;); 
session_register(&quot;IPAddress&quot;);
echo &quot;My IPAddress is $IPAddress&quot;;
?>
<a href=&quot;Session2.php&quot;> Click here to test session variable</a>

Session2.php:
Code:
<?
session_start();
$IPAddress = $HTTP_SESSION_VARS[IPAddress];
echo &quot;My IPAddress is $IPAddress&quot;;
?>

Do I have to do extra coding to make the SID inserted automaticaly if the cookies are disabled?

PHP Version: 4.0.6
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top