#46841 [Opn]: Session_name issue

From: Date: Fri, 12 Dec 2008 11:25:07 +0000
Subject: #46841 [Opn]: Session_name issue
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-131942@lists.php.net to get a copy of this message
ID: 46841 User updated by: vijaybabur at mobiusservices dot in Reported By: vijaybabur at mobiusservices dot in Status: Open Bug Type: *General Issues Operating System: Cent OS -PHP Version: 5.2.8 +PHP Version: 5.1.6 New Comment: My PHP version is 5.1.6 From my php.ini file - for your ref session.name = PHPSESSID session.auto_start = 0 Previous Comments: ------------------------------------------------------------------------ [2008-12-12 06:35:24] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46841&edit=1

« previous php.bugs (#131942) next »