note 55156 deleted from function.session-start by bjori

From: Date: Sun, 16 Apr 2006 00:33:29 +0000
Subject: note 55156 deleted from function.session-start by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108223@lists.php.net to get a copy of this message
Note Submitter: ethomas at csd dot abdn dot ac dot uk ---- I had a problem because I was using a session to store whether or not the the user wanted to save their session for 7 days. Unfortunately I could not use session_set_cookie_params() because I had to call it after a session_start and the default had been set. I got around this by calling <?php setcookie(session_name(),session_id(),time()+3600*24*7); ?> After session_start() which undid the damage

« previous php.notes (#108223) next »