Session
| From: | Ib Helmer Nielsen | Date: | Fri, 03 May 2002 22:31:46 +0000 |
| Subject: | Session | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-13546@lists.php.net to get a copy of this message | ||
Hi
I am new in programming in PHP, so my question is purhaps stupid but never
the less.
The problem is the following, when i run the program below ther is made a
file in the directory for saving session var.
<?php
session_start();
$userID = "ihn";
if (session_register("userID"))
{
echo("User : $userID");
} else
{
echo("Could not set the session variable!");
}
?>
but i cannot read the var back with th followng pogram
<?php
session_start();
eccho("User : $userID");
?>
thanks in advance
escuse my english
Ib Helmer Nielsen