note 58556 added to function.session-start

From: Date: Tue, 08 Nov 2005 07:31:30 +0000
Subject: note 58556 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-98228@lists.php.net to get a copy of this message
I encountered this serious problem that I lost all my session data after a redirect even though I used all the solutions previously posted... I wonder what is going wrong with my script... here is my part of my code: session_start(); $_SESSION['pid']=$pid; $_SESSION['cusid']=$cusid; $_SESSION['paswd']=$paswd; session_write_close(); header('Location:http://www.test.com/test.php'); exit(); on test.php, I echo those three session variables after the page has been redirected. It gives me nothing on the test.php page... all my session variables are gone.... by the way, all session variables "are able" to be passed to test.php if I use IE, but they won't if I use firefox.... any reason? ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58556 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58556&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58556&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58556&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58556&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58556&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58556&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58556&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58556&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98228) next »