note 37645 modified in function.header by danbrown
| From: | danbrown@php.net | Date: | Sun, 07 Dec 2008 18:34:48 +0000 |
| Subject: | note 37645 modified in function.header by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147840@lists.php.net to get a copy of this message | ||
A call to session_write_close() before the statement
<?php
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.
--was--
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.
http://php.net/manual/en/function.header.php