Comments

What is the php code with which it did work? Have you been able to see where why the old thing did work, and the new one doesn't (and maybe even have a patch available :D)?

Posted by Gabriel Baez (gabrielbaez) on 2009-11-04T10:30:36.000+0000

Hello, the old code was exactly what's currently in the documentation. This is exactly what I had in the bootstrap. {code:title=Bar.java|borderStyle=solid

//setup your DB connection like before //NOTE: this config is also passed to Zend_Db_Table so anything specific //to the table can be put in the config as well $config = array( 'name' => '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 );

If I remove the session information out of the resources and setup the session in the bootstrap with the code above it which was the old way, then it works.
Posted by Gabriel Baez (gabrielbaez) on 2009-11-04T10:34:47.000+0000
and just for reference if I remove the SaveHandler information then it works.
<pre class="highlight">
/../data/sessionstrue864000
Posted by Gabriel Baez (gabrielbaez) on 2009-11-04T10:40:01.000+0000
There seem to be similar issue but with different errors with Zend Application Resource Session
<http://zendframework.com/issues/browse/ZF-6868>
Posted by Ramon Henrique Ornelas (ramon) on 2009-11-10T17:35:02.000+0000
Problem to assign primary keys composed in associative array as index.
[http://framework.zend.com/manual/en/…](http://framework.zend.com/manual/en/zend.db.table.html#zend.db.table.defining.primary-key)
<pre class="highlight">
session_idsave_pathnamesessionIdsessionSavePathsessionName
Change for
<pre class="highlight">
session_idsave_pathnamesessionIdsessionSavePathsessionName
Note the attached file.
Posted by Gabriel Baez (gabrielbaez) on 2009-11-11T06:42:25.000+0000
Hey Ramon, I used the setup that you provided and it works correctly, thanks for the help. It would be nice if the xml example was documented in the Zend Application section in case anybody else runs into the same issue.
Posted by Ramon Henrique Ornelas (ramon) on 2009-11-13T01:31:55.000+0000
Hey Gabriel, I'll mark this issue as resolved. I'll open a suggestion for improving the documentation in Zend\_Application.