PHP 4.0 Bug #5091: session.cookie_lifetime problem
| From: | igalmarino at ecron dot com dot ar | Date: | Fri, 16 Jun 2000 18:05:56 +0000 |
| Subject: | PHP 4.0 Bug #5091: session.cookie_lifetime problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21548@lists.php.net to get a copy of this message | ||
From: igalmarino@ecron.com.ar
Operating system: Red Hat Linux 6.2
PHP version: 4.0.0 Release
PHP Bug Type: Session related
Bug description: session.cookie_lifetime problem
I have a very strange problem. If i change the session.cookie_lifetime value on the php.ini file,
session variables stop working. if a set the cookies lifetime (session.cookie_lifetime = 0) to 0
(live until the browser is close) everything works ok, but if i set this value to
anything else the session variables stop working !!!!. i test the problems with this code
<?php
session_register("count");
$count++;
?>
Hello visitor, you have seen this page <? echo $count; ?> times.<p>
To continue, <A HREF="nextpage.php">click here</A>
if i use <?=SID?> on the url everything works ok.
This is my php.ini [Session]:
[Session]
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 100
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length = 0
session.entropy_file =
; session.entropy_length = 16
; session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
im using Red Hat Linux 6.2, Apache 1.3.12, MySQL 3.22.32, mod_ssl 2.6.4 and PHP 4.0.0. Apache,
MySQL, mod_ssl and PHP are compiled from source.
PHP compiled options are :
./configure' '--with-apache=../apache_1.3.12'
'--with-mysql=/usr/local/mysql' '--enable-memory-limit=yes'
'-enable-debug=no'
Any help will be wellcome :=)