Re: session

From: Date: Tue, 02 Apr 2002 21:28:08 +0000
Subject: Re: session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91221@lists.php.net to get a copy of this message
Try putting session_start() in your retief.php script as well as piet.php. -Steve On Wednesday, April 3, 2002, at 01:06 PM, R. Lindeman wrote:
okay i've posted something before here are my scripts either you tell me what i do wrong or i'll go beserk you can check the outcome of the code on the following adress http://www.filenexus.com/piet.php here's the code for piet.php : <?php // open session and begin registering values session_start(); session_register("fubar1"); session_register("fubar2"); session_register("fubar3");
$fubar1        =        "Remko";
$fubar2        =        "Lindeman";
$fubar3        =        "I3M1I";
header("Location: retief.php?".SID); ?> here's the code for retief.php : <?php // begin the retrieval of propagated values $remko = $HTTP_SESSION_VARS["fubar1"]; $lindeman = $HTTP_SESSION_VARS["fubar2"]; $klas = $HTTP_SESSION_VARS["fubar3"]; echo $remko; echo $lindeman; echo $klas; ?> the problem is that the values don't get registered -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#91221) next »