note 42537 deleted from function.session-start by nlopess

From: Date: Thu, 20 May 2004 15:06:38 +0000
Subject: note 42537 deleted from function.session-start by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-69878@lists.php.net to get a copy of this message
Note Submitter: ivan@cibi.it ---- If you got these warnings: Warning: Unknown(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in Unknown on line 0 Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 may be you've something like: <?php ini_set('session.name', 's'); ini_set('session.use_cookies', 0); @session_start(); ?> in your code and the HTTP request is something like: http://www.example.com/?s= A possible workaround: <?php ini_set('session.name', 's'); ini_set('session.use_cookies', 0); if(isset($_REQUEST["s"]) && $_REQUEST["s"]==""){ unset($_POST['s']); unset($_GET['s']); } @session_start(); ?> I.B.

« previous php.notes (#69878) next »