note 30105 deleted from function.session-name by didou

From: Date: Sun, 18 May 2003 03:55:34 +0000
Subject: note 30105 deleted from function.session-name by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48398@lists.php.net to get a copy of this message
Note Submitter: acsguy@wtp.net ---- You cannot have spaces in the name of a session. If you use spaces in your name, there will be a new session each time the page loads instead of the expected behavior of using the same session each time. If you use a varaible to store the name and allow visitors to influence that name, you might want to do it this way.... session_name(str_replace(" ", "_", $sitename)); session_start(); FYI

« previous php.notes (#48398) next »