note 44975 deleted from function.session-id by aidan

From: Date: Sun, 22 Aug 2004 11:17:05 +0000
Subject: note 44975 deleted from function.session-id by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75092@lists.php.net to get a copy of this message
Note Submitter: someone [at] dotarchitect [dot] org ---- regarding cybertinus: While creating a session handler, I found that there might be a time where you'd like to define session_id before starting a session. So, in that case, your code would assume a session was started even when it wasn't. This following code works as expected: if(!isset($_SESSION)) { session_start(); }

« previous php.notes (#75092) next »