RE: [PHP] session/cookies
| From: | Johnson, Kirk | Date: | Fri, 01 Mar 2002 15:31:17 +0000 |
| Subject: | RE: [PHP] session/cookies | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-86771@lists.php.net to get a copy of this message | ||
Start by adding a "session_start()" to the 2nd file, then see what happens.
Kirk
> Hi again, I am doing a simple example of cookies and my
> server seems to
> get frozen.
>
> Basically, what I do is:
>
> file01.php:
> <?
> session_start();
> seession_register("sess_var");
> sess_var = "Hello";
> ?>
>
> file02.php
> <?
> echo $sess_var;
> session_unregister("sess_var");
> ?>
>
> What ends up happening when I go to the second file is the server just
> opens the file forever never showing the content, and ends up
> giving me
> an error message.