note 62486 added to ref.session

From: Date: Wed, 01 Mar 2006 18:19:17 +0000
Subject: note 62486 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-104646@lists.php.net to get a copy of this message
I just spent a lot of time trying to figure out why my session variables were not available after I seemed to have set them(could echo after setting). I use the same script for several different functions, so the user may reload the page for other purposes. Someone else posted the use of session_write_close(); before a Location redirect. This also worked in put this after I set the session variables the variables are available when the page reloads for another function. $_SESSION['guid'] = $guid; $_SESSION['userdata'] = $response; session_write_close(); ---- Server IP: 64.71.164.2 Probable Submitter: 64.236.139.119 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/ref.session.php Edit -- http://master.php.net/note/edit/62486 Del: integrated -- http://master.php.net/note/delete/62486/integrated Del: useless -- http://master.php.net/note/delete/62486/useless Del: bad code -- http://master.php.net/note/delete/62486/bad+code Del: spam -- http://master.php.net/note/delete/62486/spam Del: non-english -- http://master.php.net/note/delete/62486/non-english Del: in docs -- http://master.php.net/note/delete/62486/in+docs Del: other reasons-- http://master.php.net/note/delete/62486 Reject -- http://master.php.net/note/reject/62486 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104646) next »