|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-06 09:16 UTC] sas at cvs dot php dot net
[2002-11-14 13:55 UTC] murray dot rennie at ec dot gc dot ca
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 04:00:02 2025 UTC |
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 :=)