Re: [PHP4BETA] regarding session_register...
| From: | Andrei Zmievski | Date: | Fri, 10 Dec 1999 17:27:26 +0000 |
| Subject: | Re: [PHP4BETA] regarding session_register... | ||
| References: | 1 2 3 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-7768@lists.php.net to get a copy of this message | ||
On Fri, 10 Dec 1999, Hans Rakers wrote:
> Thanks for such a quick answer :)
> Anyway, before calling session_register i *do* call session_start.
> The first scriptfile (where i start the session) contains this:
>
> session_start();
> session_name($authrow[authorName]);
> session_register("tekoopUID");
> $tekoopUID=$authrow[authorID];
>
> Now somewhere else in the website i want to pull out the value for 'tekoopUID'
> from the session, but $tekoopUID contains nothing. It does return the
> original value after calling session_register("tekoopUID") again. Or do i have
> to use session_start() again (instead of session_register) at this point to be
> able to retreive the registered variables in the session ?
Yes, you have to use session_start() or set session.auto_start = 1 in
the config file so that when the script runs it can decode the session
data into variables.
> BTW: Is this mailinglist archived on the web somewhere?
http://www.progressive-comp.com/Lists/?l=php4beta&r=1&w=2
-Andrei
* Life may be expensive, but it includes an annual free trip around the sun. *