note 55762 added to function.header

From: Date: Fri, 12 Aug 2005 14:23:37 +0000
Subject: note 55762 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-93503@lists.php.net to get a copy of this message
It seems when I set session variables and redirect to another page, the variables are not set in Mozilla browsers. $_SESSION['userInfo'] = getUserInfo($rs); session_write_close(); redirect("LoginApproved.php?loginType=$loginType"); exit; The page it redirects to depends on userInfo if(empty($_SESSION['userInfo']) || $_SESSION['userInfo']->GetLoginType() != "Admin"){ $msg = (empty($_SESSION['userInfo']))? "empty":$_SESSION['userInfo']->GetLoginType(); redirect("Unauthorized.php?msg=$msg"); exit; } msg is set to "empty" in Mozilla browsers, while it displays the page correctly in IE. ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55762 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55762&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55762&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55762&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55762&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55762&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55762&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55762&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#93503) next »