Re: init() method
Lukas Kahwe Smith <[email protected]> Sun, 18 Dec 2005 22:02:06 +0100
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
Matthias Nothhaft wrote:
> Lukas Kahwe Smith schrieb:
>
>>Matthias Nothhaft wrote:
>>
>>
>>>I think there is an exclamation mark where it should not be at the end
>>>of LU::login() on line 1062 -> force_start
>>
>>
>>nope .. its right.
>>it checks if init() already called _startSession()
>
>
> Hi Lukas,
>
> I found the same thing in _unfreeze()
>
> Why do you start the session if the option force_start is false?
> It seems to be a strange logic. ;-)
this is in the init() method:
if ($this->_options['session']['force_start']) {
$this->_startSession();
}
so since init() has to be called and
$this->_options['session']['force_start'] is true, then we dont need to
call $this->_startSession() anymore .. otherwise we do have to call it ..
regards,
Lukas