Hi Laurent,

IIRC, Zend_Session::rememberMe() uses session_set_cookie_params(). Thus,
it must be called before the session is started to work properly. This
is documented here:

http://framework.zend.com/manual/en/zend.session.global_session_management.html#zend.session.global_session_management.rememberme

Sorry for the long URL. :)

Best regards,
Darby

Laurent Melmoux wrote:
> Hi all,
> 
> Until now I had call Zend_Session::start() at the beginning of bootstrap
> file, so far so good.
> 
> But now, I would like to add a remember me option on my login form, so
> if the authentification succeed and the remember me have been checked I
> call Zend_Session::rememberMe()... But it won’t work because the session
> is already started!
> 
> What do you consider as best practice to deal with this use case?
> Where Zend_Session::start() should be called ?
> 
> Regards
> 

Reply via email to