|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Passing Session ID ... Please HELP
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 http://www.php.net/manual/en/ref.session.php 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 |
|
#2
|
|||
|
|||
|
RE: Passing Session ID ... Please HELP
From the manual:
Note: For PHP 4.1.2 or less, it is enabled by compiling with --enable-trans-sid. From PHP 4.2.0, trans-sid feature is always compiled. Have you checked your compile options? |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Passing Session ID ... Please HELP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|