php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5091 session.cookie_lifetime problem
Submitted: 2000-06-16 20:05 UTC Modified: 2000-07-06 09:16 UTC
From: igalmarino at ecron dot com dot ar Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.0 Release OS: Red Hat Linux 6.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: igalmarino at ecron dot com dot ar
New email:
PHP Version: OS:

 

 [2000-06-16 20:05 UTC] igalmarino at ecron dot com dot ar
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 :=)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-06 09:16 UTC] sas at cvs dot php dot net
This has been fixed in PHP 4.0.1. Please upgrade to the latest release.
 [2002-11-14 13:55 UTC] murray dot rennie at ec dot gc dot ca
I'm having this same problem, however, I'm using php 4.1.2 .
Also, I am using RedHat 7.2 or 7.3, with Apache 1.3.23 and postgres 7.2.

If I change session.cookie_lifetime to anything other than a zero, the sessions stop working.
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 08 10:03:53 2023 UTC