#27550 [Bgs->Opn]: session_name doesn't fail or compensate for illegal white space

From: Date: Wed, 10 Mar 2004 18:31:54 +0000
Subject: #27550 [Bgs->Opn]: session_name doesn't fail or compensate for illegal white space
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56253@lists.php.net to get a copy of this message
ID: 27550 User updated by: whelan at nexserver dot com Reported By: whelan at nexserver dot com -Status: Bogus +Status: Open Bug Type: Session related Operating System: Windows XP PHP Version: 4.3.4 New Comment: This is definately a problem with php. It is either an illegal parameter, or it should be handled as if it were a correct parameter. It does neither at this time. It will not maintain a session of a name with a space in it. You're saying it should start a new session with a new session id every time it encounters a session with the same name, so it doesn't maintain the session variables? This doesn't make any sense. Previous Comments: ------------------------------------------------------------------------ [2004-03-10 13:23:19] sniper@php.net RTFM ------------------------------------------------------------------------ [2004-03-10 10:42:11] whelan at nexserver dot com Description: ------------ if it contains a space, you get a new session_id on every page calling session_start(). I believe php should either fail and return an error or compensate for the space. It shouldn't just not work correctly. Reproduce code: --------------- session_name('New Session'); session_start(); Expected result: ---------------- It should maintain the same session id for each session with the same session name. Actual result: -------------- It will create a new session id for each time this is called. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27550&edit=1

« previous php.bugs (#56253) next »