note 84753 deleted from book.session by peehaa

From: Date: Thu, 15 Jun 2017 13:40:56 +0000
Subject: note 84753 deleted from book.session by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-209139@lists.php.net to get a copy of this message
Note Submitter: Madster ---- When you include a php file in your current script it's included, not processed separately, thus it's still within the same page and the current page hasn't finished processing. Thus, session is not set yet. This is the expected behaviour. If you need to load a page after setting session data, you should set session data and then send a redirection or refresh header (remember not to send anything, not even whitespace before sending headers). Always consider session data to be updated after the next page load (as in http request completed).

« previous php.notes (#209139) next »