Date: 09/23/00
- Next message: jeremy brand: "Re: [PHP] Server push using PHP"
- Previous message: David Tod Sigafoos: "Re: [PHP] Newbie HTML-form & PHP question"
- Next in thread: Jason Stechschulte: "RE: [PHP] Automatic sessions not working, even with --enable-trans-id set?"
- Reply: Jason Stechschulte: "RE: [PHP] Automatic sessions not working, even with --enable-trans-id set?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: jeremy brand: "Re: [PHP] Server push using PHP"
- Previous message: David Tod Sigafoos: "Re: [PHP] Newbie HTML-form & PHP question"
- Next in thread: Jason Stechschulte: "RE: [PHP] Automatic sessions not working, even with --enable-trans-id set?"
- Reply: Jason Stechschulte: "RE: [PHP] Automatic sessions not working, even with --enable-trans-id set?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

