Zend Session Expires Fast

Asked

Viewed 510 times

0

I’m having trouble with the Zend session because it expires so fast, I’ve tried everything!

1- I use a base controller, where all others extend from it in the init() method of the base controller:

Zend_Session::rememberMe(864000);
Zend_Session::start(); 

2- No Apllication.ini

;SESSÃO
resources.session.save_path = APPLICATION_PATH "/../data/session/"
resources.session.gc_maxlifetime = 864000
resources.session.remember_me_seconds = 864000

3- I have already changed the permissions of these "data/Session" files to 777

4- I already put in bootstrap.php

protected function _initSession()
    {
      Zend_Session::rememberMe(864000);
      Zend_Session::start();
      $this->bootstrap('session');        
    }

And nothing solved.

1 answer

1

$testSpace = new Zend_Session_Namespace('testSpace');
$testSpace->setExpirationSeconds(300, 'accept_answer');
$testSpace->accept_answer = true;

I think it helps!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.