note 100282 deleted from function.header by tularis
| From: | tularis@php.net | Date: | Fri, 04 Apr 2014 11:23:53 +0000 |
| Subject: | note 100282 deleted from function.header by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-199142@lists.php.net to get a copy of this message | ||
Note Submitter: vedran-b at email dot htnet dot hr
----
As known redirecting to a page inside your domain with header() does not pass along $_session
variables.
Strange thing is that it is client dependant.
sometimes as stated session_write_close() before using header helps.
I've noticed that if the redirect doesn't point to the full URL of the page e.g.
"Location: example.com/page2.php"
but instead to
"Location: /page2.php"
The session does get perserved with no need to append data manually to the url.