See the attached message, posted two weeks ago. It might help to change your 
code into:

>Zend_Session::RememberMe();
>$handler = Zend_Session::getSaveHandler();
>$handler->setLifeTime(60*60*2)
>            ->setOverrideLifetime(true);

Don't know if it helps....

Regards, Jurian
--
Jurian Sluiman
Soflomo.com

Op Thursday 29 October 2009 06:35:53 schreef Vibhor Singh:
> Hi folks,
>
>
>
> I am having  a problem using Zend_Session in my app. Using ZF version 1.9.1
>
>
>
> I am using  the following code to set a members data in session for a
> period of 2 hrs after successful login
>
>
>
> Zend_Session::rememberMe(60*60*2);
>
>
>
> However, the session goes out in merely 5 -10 mins.
>
> I am not able to figure out the problem can someone help me in this.
>
> Thanks in advance
>
>
>
> Regards,
>
> Vibhor
--- Begin Message ---
Use the following to handle the "remember me" functionality:

            if ($this->_hasParam('rememberme') &&
$this->_getParam('rememberme')) {

            /**
                  * 'remeberMe' setting is defined it the global config
                  */
                Zend_Session::rememberMe();

            $saveHandler = Zend_Session::getSaveHandler();

$saveHandler->setLifetime($this->_globalConfig->session->params->remember_me_seconds)
                        ->setOverrideLifetime(true);

            }

On Fri, Oct 16, 2009 at 9:36 AM, bmuse <[email protected]> wrote:

>
> I'm trying to keep my users logged in for a month. Currently I'm calling
> Zend_Session::start();
> in my bootstrap.
>
> In my login controller I have:
> Zend_Session::rememberMe(60*60*24*7*4);
>
> However, I'm only logged in in the current tab or window and the session
> seems to expire after an hour or so.
>
> Any advice on the proper way to set this up would be greatly appreciated.
> --
> View this message in context:
> http://www.nabble.com/Zend_Session%3A%3ArememberMe%28%29-not-working-or-not-implemented-correctly.-tp25926465p25926465.html
> Sent from the Zend Auth mailing list archive at Nabble.com.
>
>


-- 
Cory Wiles
[email protected]
http://www.corywiles.com/
http://www.randomthoughtprocess.com/

--- End Message ---

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to