#18227 [Opn->Csd]: calling session_set_cookie_params breaks session_start

From: Date: Wed, 25 Sep 2002 12:38:41 +0000
Subject: #18227 [Opn->Csd]: calling session_set_cookie_params breaks session_start
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20295@lists.php.net to get a copy of this message
ID: 18227 Updated by: sas@php.net Reported By: jeromedw@attbi.com -Status: Open +Status: Closed Bug Type: Session related Operating System: FreeBSD 4.2 PHP Version: 4.2.0 New Comment: Just remove the time() call -- you are dealing with an offset to the current time, not with unix timestamp. Maybe Windows has a problem with the date 11-Jul-2035.. Previous Comments: ------------------------------------------------------------------------ [2002-09-17 08:06:15] jgillap@cogeco.ca This problem is also evident in Windows XP. Reproduced under the latest version of php and apache as of September 17th 2002. ------------------------------------------------------------------------ [2002-07-08 09:07:04] jeromedw@attbi.com calling session_set_cookie_params prior to session_start results in session_start not sending the cookie. actual code squence is <? session_name( test" ); session_set_cookie_params( time() + 21*24*3600); session_start(); ?> Headers are checked using tcpflow. Removing the session_set_cookie_params sends the cookie. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18227&edit=1

« previous php.bugs (#20295) next »