my zend application uses multiple database connections, so i used the multidb resource to configure several connections in the application.ini file.
now i want to store the application sessions into the database, using Zend_Session_SaveHandler_DbTable, but i can’t find a way to specify which of those connections to use in order to access the database.
every examples i found on the net uses the db resource and relies on the default database adapter. unfortunately, the sessions have to be stored in a database which is not the default one…
how do i specify which db to use for storing session ?
although it is not specified in the Zend documentation, the constructor for the
Zend_Session_SaveHandler_DbTableclass accepts a parameter nameddbwhich specifies the database connection to use.i was not able to specfy those settings in the
application.iniconfiguration file, though…