September 23rd, 2000, 02:13 PM
I'm having problems getting automatic sessions working in PHP.
Sessions are working as expected if I tag every uri with <?php echo SID ?>, and work fine when I have cookies enabled. When I turn off cookies, though, the session fails to be automatically appended to the URI.
I've recompiled php with --enable-track-vars' and '--enable-trans-id', and echo the value of SID show that it is being set, but with a new value every page unless cookies are turned on.
The file I am using to test is:
Hello visitor, you have seen this page <?php echo $count; ?> times.<p>
To continue, <A HREF="nextpage.php">click here</A>
Is this a known issue with this version and should I go up to 4.0.2? I can find no mention of it in the list of changes at http://www.zend.com/zend/list_change_401.php.
September 23rd, 2000, 03:01 PM
There have been several bugs reported with -trans-id that were "supposed" to be fixed in 4.0.2 but I haven't compiled 4.0.2 yet so can't say for sure. You are right, the list of changes/fixes for 4.0.2 does not mention -trans-id.
September 23rd, 2000, 11:36 PM
How do u append the sessionid to url?
I have no idea about it.
September 24th, 2000, 08:59 AM
The manual is a wonderful thing.
<a href="somepage.php<?= SID?>">Some Page</a>