Hi Ramon, thanks for reply. My database table is exactly the same as the example ( Example #2 Using a Multi-Column Primary Key ) in this documentation page.
http://framework.zend.com/manual/en/zend.session.savehandler.dbtable.html All the setup is done using application.ini ( http://framework.zend.com/manual/en/zend.application.available-resources.html#zend.application.available-resources.session ), I don't have any code in my bootstrap or anywhere else about session. Tha actual behaviour is that I have the row saved in my session table when I browse any page of my project ( the session is started ), and this is correct. But when I try to login, submitting the login form ( authentication is done using Zend_Auth ), I get that error. What I expect is that the session row previously inserted is updated with the new data ( the user data taken from the auth adapter and injected in the session ) Actually I cannot send you the authorization code that causes the exception, I'll send you later, but I can say it is a standard authorization code. Thanks for your help Sergio > Date: Sat, 6 Nov 2010 16:22:02 -0700 > From: [email protected] > To: [email protected] > Subject: [fw-general] Re: [ ZF 1.11.0 ] Zend Session Savehandler Db and Zend > Auth > > > Hi > > Maybe it is size primary key session_id, try increased the length of the key > in the DB. > > Case the error persists to reproduce i need more information how: > (a) expected behavior; > (b) actual behavior; > (c) the minimal reproduce case required. > > Thanks advance > Ramon Henrique Ornelas > > On Sat, Nov 6, 2010 at 8:48 PM, Razorblade [via Zend Framework Community] < > [email protected]<ml-node%[email protected]> > > wrote: > > > > > Hi everyone, > > I set up my application to use the database to store sessions. > > > > On my application.ini I have all the options as specified here > > > > http://framework.zend.com/manual/en/zend.application.available-resources.html#zend.application.available-resources.session > > > > The session is saved on the database, but if I try to login, using > > Zend_Auth, > > I get a mysql duplycate entry error: > > > > Integrity constraint violation: 1062 Duplicate entry > > '1f4qokoavm654b0une2j5ju5d1 > > > > Doesn't it supposed to update the saved session data and not try to > > re-insert it? > > Do I have to edit something on the authorization process ( that works using > > normal sessions )? > > > > Please reply. > > > > Thanks > > > > Sergio > > > > > > > > > > ------------------------------ > > View message @ > > http://zend-framework-community.634137.n4.nabble.com/ZF-1-11-0-Zend-Session-Savehandler-Db-and-Zend-Auth-tp3030432p3030432.html > > To start a new topic under Zend Framework, email > > [email protected]<ml-node%[email protected]> > > To unsubscribe from Zend Framework, click > > here<http://zend-framework-community.634137.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=634138&code=cmFtb24ub3JuZWxhQGdtYWlsLmNvbXw2MzQxMzh8MTMxMDkxMjY1MQ==>. > > > > > > > > -- > View this message in context: > http://zend-framework-community.634137.n4.nabble.com/ZF-1-11-0-Zend-Session-Savehandler-Db-and-Zend-Auth-tp3030432p3030450.html > Sent from the Zend Framework mailing list archive at Nabble.com.
