note 11797 rejected and deleted from Session handling functions by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Wed, 07 Mar 2001 20:42:07 +0000 |
| Subject: | note 11797 rejected and deleted from Session handling functions by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12007@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().