note 41682 added to function.session-start

From: Date: Mon, 19 Apr 2004 19:13:17 +0000
Subject: note 41682 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-68338@lists.php.net to get a copy of this message
If you're facing problems with destroying a session or opening it, the solution may be surprising: a while ago my colleagues and I noticed that one should place session_set_cookie_params() BEFORE session_start() rather than AFTER it. I haven't seen any kind of documentation of this but in practice it seams to work better. ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41682 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41682&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41682&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68338) next »