Re: [win-apache]: using $_SESSION

From: Date: Fri, 29 Mar 2002 17:47:33 +0000
Subject: Re: [win-apache]: using $_SESSION
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12826@lists.php.net to get a copy of this message
John, I'm actually facing the same problem with yours and whatever I tried doesn't seem to work now, that's why I'm still searching for the answer and waiting for anybody to give me pointers here. ----- Original Message ----- From: John Mpaliza To: pootri@hotmail.com Sent: Friday, March 29, 2002 6:20 AM Subject: [win-apache]: using $_SESSION I'm using Apache-win-php4.1.3 and can't create session variables by using session_start() and $_SESSION['.......']. I'm new to php, please help. Next week I tried php4.1.1 and all was working well. Now, using php4.1.3, compiled as an Apache module and with session.use_trans_sid=1 in php.ini, I can't redirect a page to another and access the $_SESSION['variables'] defined in the 1st document. All codes that were working correctly first now do not. es. pageone.php <?php session_start(); $_SESSION['var']="testsession"; header( "Location: anotherpage.php?".SID); exit; ?> ----- anotherpage.php <?php session_start(); print $_SESSION['var']; .................. ?> N.B: I got a warning: undefined index : var; and make some controls I noticed that $_SESSION['var'] is not set in the anotherpage.php. And in pageone.php, $_SESSION['var'] is set as a normal variable but not a session variable because all files (sess_21ae6dg34............) are EMPTY. Please help me. Thank u. John _______________________________________________________________________________ IncrediMail - il mondo della posta elettronica si è finalmente evoluto - Clicca Qui

« previous php.windows (#12826) next »