Yes, if I change the session storage from Db to File
it works fine :( this is the strange and odd behaviour
I've and other site with the same problem :(
and I don't know which way to turn
I post you the what I set to change the session storage
In the ini ( in case of session DB I comment this lines)
; Session
resources.session.save_path = APPLICATION_PATH "/../data/sessions"
resources.session.use_only_cookies = true
resources.session.remember_me_seconds = 864000
a when I use session Db I've this method in my Bootstrap
protected function _initDbSession()
{
$config = array(
'name' => 'tn_session', //table name as per Zend_Db_Table
'primary' => array(
'session_id', //the sessionID given by PHP
'save_path', //session.save_path
'name', //session name
),
'primaryAssignment' => array(
//you must tell the save handler which columns you
//are using as the primary key. ORDER IS IMPORTANT
'sessionId', //first column of the primary key is of the sessionID
'sessionSavePath', //second column of the primary key is the save
path
'sessionName', //third column of the primary key is the session
name
),
'modifiedColumn' => 'modified', //time the session should
expire
'dataColumn' => 'session_data', //serialized data
'lifetimeColumn' => 'lifetime', //end of life for a specific
record
);
$saveHandler = new Zend_Session_SaveHandler_DbTable($config);
//cookie persist for 12 hours
Zend_Session::rememberMe($seconds = (60 * 60 * 12));
//make the session persist for 12 hours
$saveHandler->setLifetime($seconds)
->setOverrideLifetime(true);
Zend_Session::setSaveHandler($saveHandler);
}
/*
For extra information
*/
protected function _initAuth()
{
$auth = Zend_Auth::getInstance();
$auth->setStorage(new
Zend_Auth_Storage_Session(sha1(self::AUTH_SECRET_SESSION)));
Zend_Registry::set('auth', $auth);
}
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Session-Db-trouble-with-ajax-request-tp2073591p2073677.html
Sent from the Zend Framework mailing list archive at Nabble.com.