note 15879 added to function.header

From: Date: Sat, 06 Oct 2001 14:36:31 +0000
Subject: note 15879 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-18636@lists.php.net to get a copy of this message
TO CHANGE PAGE (Header: Location) - BUT MAINTAIN SESSION FOR NON-COOKIE PEOPLE: $nextpage = "/viewcart"; $nextpage .= "?" . session_name() . "=" . session_id(); header ("Location: " . $nextpage); ----------------- OR - IF YOU'RE ALREADY CHECKING TO SEE IF THEY HAVE COOKIES OR NOT, SOMEWHERE ELSE... $nextpage = "/viewcart"; if ($nocookies) { $nextpage .= "?" . session_name() . "=" . session_id(); } header ("Location: " . $nextpage); ----------------- -- http://www.php.net/manual/en/function.header.php http://master.php.net/manage/user-notes.php?action=edit+15879 http://master.php.net/manage/user-notes.php?action=delete+15879 http://master.php.net/manage/user-notes.php?action=reject+15879

« previous php.notes (#18636) next »