Re: Session
| From: | Ernani Joppert Pontes Martins | Date: | Wed, 18 Sep 2002 06:09:48 +0000 |
| Subject: | Re: Session | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15878@lists.php.net to get a copy of this message | ||
Set php.ini session_save_path to whereever u want to.
HTH,
Ernani
"Ib Helmer Nielsen" <ihn@ihn.dk> escreveu na mensagem
news:20020504141226.86556.qmail@pb1.pair.com...
> 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
>
>
>
>
>