note 37644 added to function.session-write-close
| From: | jpatwebgraphedotcom at rn2 dot php dot net | Date: | Fri, 21 Nov 2003 20:50:15 +0000 |
| Subject: | note 37644 added to function.session-write-close | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60768@lists.php.net to get a copy of this message | ||
It is a good idea to call session_write_close() before proceeding to a redirection using
header("Location: URL");
exit();
because it ensures the session is updated (in a file or into a database, depending on the handler
you're using) BEFORE you redirect the visitor somewhere else.
JP.
----
Manual Page -- http://www.php.net/manual/en/function.session-write-close.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37644
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37644&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37644&report=yes
Search -- http://master.php.net/manage/user-notes.php