RE: [PHP] Automatic sessions not working, even with --enable-trans-id set?
| From: | Jason Stechschulte | Date: | Tue, 26 Sep 2000 12:32:00 +0000 |
| Subject: | RE: [PHP] Automatic sessions not working, even with --enable-trans-id set? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17601@lists.php.net to get a copy of this message | ||
I don't have any suggestions, but I am wondering if anyone has
offered suggestions. I am having an even stranger problem. The
box we have PHP running on is hosting 2 virtual hosts. The first
website works correctly with --enable-trans-sid. The second
doesn't work at all with --enable-trans-sid. They have the same
virtual host configuration, so I am at a lost. If you get any
information that might help, please forward it along!
Jason Stechschulte
jpstech@nc.edu
-----Original Message-----
From: Andy Warwick [mailto:andy.war@ntlworld.com]
Sent: Saturday, September 23, 2000 12:38 PM
To: php-general@lists.php.net
Subject: [PHP] Automatic sessions not working, even with
--enable-trans-id set?
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail:
php-list-admin@lists.php.net