Re: $_SESSION

From: Date: Mon, 13 Jan 2003 13:50:22 +0000
Subject: Re: $_SESSION
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-17819@lists.php.net to get a copy of this message
okej.. here it comes as short as I could get it... try the 'test' link to go to page2... page one: <?php session_start(); $xhtmlStart = $_SESSION["xhtmlStart"]; $cellnum = 1; define("WHITE", "#ffffff"); define("LGREY", "#fafafa"); define("MAXSHOWN", 3); $xhtmlStart = "hello"; echo($xhtmlStart); echo("<a href='svar.php'>test</a>"); ?> page 2: <?php session_start(); echo($_SESSION["xhtmlStart"]); ?> ----- Original Message ----- From: "Rich Gray" <rich@f1central.net> To: "Bobo Wieland" <dev@elstudion.com>; <php-windows@lists.php.net> Sent: Monday, January 13, 2003 2:21 PM Subject: RE: [PHP-WIN] $_SESSION > Can you post some code that doesn't work.... > Rich > -----Original Message----- > From: Bobo Wieland [mailto:dev@elstudion.com] > Sent: 13 January 2003 12:14 > To: Rich Gray; php-windows@lists.php.net > Subject: Re: [PHP-WIN] $_SESSION > > > First of all; I had written the wrong save_path in php.ini. Thanks for that > Rico! It had just slipped my mind. > > Second, Rich; The test you suggested I try, did work, but my own pages > doesn't. It works only when I do: > > page1: > <? > session_start(); > session_register('test'); > $test = "blah"; > ?> > > page2: > <? > session_start(); > echo ($_SESSION['test']); > ?> > > why?!? > > .bobo > >

« previous php.windows (#17819) next »