note 100282 added to function.header

From: Date: Wed, 06 Oct 2010 00:49:28 +0000
Subject: note 100282 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-172992@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 94.162.10.10 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/100282 Del: integrated -- https://master.php.net/note/delete/100282/integrated Del: useless -- https://master.php.net/note/delete/100282/useless Del: bad code -- https://master.php.net/note/delete/100282/bad+code Del: spam -- https://master.php.net/note/delete/100282/spam Del: non-english -- https://master.php.net/note/delete/100282/non-english Del: in docs -- https://master.php.net/note/delete/100282/in+docs Del: other reasons-- https://master.php.net/note/delete/100282 Reject -- https://master.php.net/note/reject/100282 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172992) next »