note 11797 added to Session handling functions

From: Date: Wed, 07 Mar 2001 13:39:51 +0000
Subject: note 11797 added to Session handling functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-11998@lists.php.net to get a copy of this message
Hy guys, sorry, but i´am a newbee, so i had the following simple question. I use Xitami Webserver and PHP newest 4.0.4pl1 Version. Now i have the following scripts with "Session Management", but the array is not taken to the next page except the session_name: Script 1 --------------------------------------------------------------- <?php session_start(); $Orte = array( "Berlin", "Amsterdam", "London", "Madrid", "Athen", "Lissabon", "Kopenhagen", "München" ); session_register( "Orte" ); ?> ------------------------------------------------------------------- Script 2 ------------------------------------------------------------------- <?php session_register(); $name = session_name(); print "<b><u>Session-Name:</b></u> ".$name. "<br>"; foreach( $Orte as $elem ) { print $elem. "<br>"; } session_destroy(); ?> --------------------------------------------------------------- When i start the first script the script is loading and loading but nothing happens. The second script gives out the session_name(). http://www.php.net/manual/en/ref.session.php

« previous php.notes (#11998) next »