php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46841 Session_name issue
Submitted: 2008-12-12 06:35 UTC Modified: 2008-12-16 18:26 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: vijaybabur at mobiusservices dot in Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.1.6 OS: Cent OS
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: vijaybabur at mobiusservices dot in
New email:
PHP Version: OS:

 

 [2008-12-12 06:35 UTC] vijaybabur at mobiusservices dot in
Description:
------------
Hi,

I think this is a bug. I am facing problem in handling more than one session in a single page. 


When i set the session_name at first, it's working fine. But if i change the session.name in the next looping, it has changed but the session values doesn't get changed. It's showing the previous session value's only.

Reproduce code:
---------------
foreach ($projects as $key => $val)
{	
     ini_set('session.name',$val);
     session_name($val);
     session_start();
     session_regenerate_id(false);
     echo session_id();
     .
     .
 

     .
     session_write_close();
}

Expected result:
----------------
I need to handle more than one session values in a single page.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-12 11:25 UTC] vijaybabur at mobiusservices dot in
My PHP version is 5.1.6
From my php.ini file - for your ref
session.name = PHPSESSID
session.auto_start = 0
 [2008-12-16 18:26 UTC] jani@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #45380
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 00:01:30 2024 UTC