Automatic sessions not working, even with --enable-trans-id set?
| From: | Andy Warwick | Date: | Sat, 23 Sep 2000 16:37:51 +0000 |
| Subject: | Automatic sessions not working, even with --enable-trans-id set? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17448@lists.php.net to get a copy of this message | ||
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:
----start file
<?php
session_register ("count");
$count++;
?>
Hello visitor, you have seen this page <?php echo $count; ?> times.<p>
To continue, <A HREF="nextpage.php">click here</A>
----end file
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.
Relevant sections of phpinfo() are:
PHP Version 4.0.1
System Linux tmt 2.2.17 #1 Tue Jul 18 17:51:27 PDT 2000 ppc unknown
Build Date Sep 22 2000
Configure Command './configure' '--with-mysql'
'--with-apxs=/usr/local/apache/bin/apxs' '--enable-track-vars'
'--enable-versioning' '--enable-trans-id'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib
ZEND_DEBUG disabled
Thread Safety
Session Support enabled
Directive Local Value Master Value
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
Apache Version Apache/1.3.12
Apache Release 10312100
Apache API Version 19990320