php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18227 calling session_set_cookie_params breaks session_start
Submitted: 2002-07-08 09:07 UTC Modified: 2002-09-25 07:38 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jeromedw at attbi dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.2.0 OS: FreeBSD 4.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: jeromedw at attbi dot com
New email:
PHP Version: OS:

 

 [2002-07-08 09:07 UTC] jeromedw at attbi dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-17 08:06 UTC] jgillap at cogeco dot ca
This problem is also evident in Windows XP. Reproduced under the latest version of php and apache as of September 17th 2002.
 [2002-09-25 07:38 UTC] sas@php.net
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..
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 23:01:29 2024 UTC