php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24923 session_start() does not set session id cookie !!!
Submitted: 2003-08-03 09:40 UTC Modified: 2003-08-04 10:39 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:0 (0.0%)
From: bestmischmaker at web dot de Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.3RC2 OS: windows2000sp4
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: bestmischmaker at web dot de
New email:
PHP Version: OS:

 

 [2003-08-03 09:40 UTC] bestmischmaker at web dot de
Description:
------------
Hy...

i have try to use session as file version...it should set the PHPSESSID as COOKIE, but it doesn't do this...

if have use this with any other php version befor and it runs fine...

if have check my php.ini
session.save_handler = files
session.use_cookies = 1
session.name = PHPSESSID

so the session will started but the cookie will not set !!!

OS: Win32 (w2k_sp4)
Apache 2.0.46 / php4.3.3RC2

hope i could help :)
cya

Reproduce code:
---------------
<?php
// "private" , "public" , "nocache" , "private_no_expire"
session_cache_limiter( private_no_expire );
// Browser Cache Time
session_cache_expire( 0 );
session_set_cookie_params( 0 , "/" , "intranet" , FALSE );
session_start();
var_dump($_COOKIE);
?>


Expected result:
----------------
Result should be:

$_COOKIE["PHPSESSID"] = "34grgerjheqwgr76226453828";



Actual result:
--------------
is nothing !!!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-04 10:39 UTC] sniper@php.net
1. There is no such constant as private_no_expire (it's a string, you need to have quotes around it)
2. Use valid domain in the 3rd parameter for session_set_cookie_params() call. See http://www.php.net/setcookie for detailed explanation for the  domain in cookies.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 11:01:32 2024 UTC