note 37645 added to function.header
| From: | jpatwebgraphedotcom at rn2 dot php dot net | Date: | Fri, 21 Nov 2003 20:56:30 +0000 |
| Subject: | note 37645 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60769@lists.php.net to get a copy of this message | ||
A call to session_write_close() before the statement
header("Location: URL");
exit();
is recommended if you want to be sure the session is updated before proceeding to the redirection.
We encountered a situation where the script accessed by the redirection wasn't loading the
session correctly because the precedent script hadn't the time to update it (we used a database
handler).
JP.
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37645
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37645&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37645&report=yes
Search -- http://master.php.net/manage/user-notes.php