Re: empty( session_id() ) doesn't work
| From: | Hartmut Holzgraefe | Date: | Tue, 15 Aug 2000 11:27:52 +0000 |
| Subject: | Re: empty( session_id() ) doesn't work | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-28901@lists.php.net to get a copy of this message | ||
Sebastian Bergmann wrote:
> why do I have to use
> $session_id = session_id();
> if( empty( $session_id ) )
> instead of
> if( empty( session_id() ) )
> which gives me a parse error
empty() does only work on variables, not on expressions
> Is there another way to determine whether or not session_start() has
> already been called?
"if (session_id())" should do
> Does it have side-effects when session_start() is called more than once?
no
--
Hartmut Holzgraefe
hartmut@six.de http://www.six.de +49-711-99091-77 fax:-99