RE: [PHP] Session data getting lost
| From: | Rich Gray | Date: | Wed, 17 Sep 2003 17:29:08 +0000 |
| Subject: | RE: [PHP] Session data getting lost | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162902@lists.php.net to get a copy of this message | ||
Jay
Thanks, but no I don't think so ... session_register() is deprecated ...
Quote PHP manual:
Caution:
If you want your script to work regardless of register_globals, you need to
instead use the $_SESSION array as $_SESSION entries are automatically
registered. If your script uses session_register(), it will not work in
environments where the PHP directive register_globals is disabled.
Cheers
Rich
>
> [snip]
> <?php
> session_start();
> $test = -1;
> .................
>
> [/snip]
>
> I think you need to register test ....
>
> http://us3.php.net/session_register
>
> HTH!
>