Looking for an example of storing session data in a database, using the Zend Framework.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
From Zend themselves, on saving session data with a custom session handler: http://devzone.zend.com/article/141
Otherwise, from within the Zend framework try the following information: http://framework.zend.com/wiki/display/ZFPROP/Zend_Session_SaveHandler_DbTable?showComments=false
回答2:
You will want to look into hooking up the Zend_Session_SaveHandler_DbTable
Of which you can find direct examples/guidance in the framework manual
http://framework.zend.com/manual/en/zend.session.savehandler.dbtable.html