ID: 46841 Updated by: j...@php.net Reported By: vijaybabur at mobiusservices dot in -Status: Open +Status: Bogus -Bug Type: *General Issues +Bug Type: Session related Operating System: Cent OS PHP Version: 5.1.6 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [2008-12-12 11:25:07] 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-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