Come on people :( is there anyone there who can help me here
Hi guys, I'm trying to store sessions in a database using Zend sessions, but for some time my sessions have been dying out. I am not sure if any code is being executed that does this or something else.
I noticed that the session id seems to be regenerating some time after logging in.
This is even though the following line has been added to the htaccess file:
php_value session.auto_start 0
As a result, I log out every minute when I logged in.
Here is my code in my boot file
$config = array( 'name' => 'session', 'primary' => 'id', 'modifiedColumn' => 'modified', 'dataColumn' => 'data', 'lifetimeColumn' => 'lifetime' ); $saveHandler = new Zend_Session_SaveHandler_DbTable($config); Zend_Session::rememberMe($seconds = (60 * 60 * 24 * 30)); $saveHandler->setLifetime($seconds)->setOverrideLifetime(true); Zend_Session::setSaveHandler($saveHandler);
I do not use any other session-related functions, except possibly for Zend_Auth at login.
Infact rememberme calls the Session class ID regeneration function - the end result is that I constantly log out after a few minutes.
source share