> -----Original Message-----
> From: Nikhil Goyal [mailto:[EMAIL PROTECTED]]

> When does a session variable become available? Immediately after the
> session_register command or after the script ends?

Immediately after it is assigned.

> And if the commands are as follows:
> 
> session_start();
> session_register("hello");
> $hello=3;
> 
> will the session variable $hello be set to 3 or do I have to 
> add another
> session_register() call after changing the value?

No additional calls are needed. You will need to do session_start() on the
next page if you want to access $hello there.

Kirk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to