Any detached/independent Session Library in PHP using Flat File or MySQL?
Question
Any detached/independent Session Library in PHP using Flat File or MySQL?
Solution
In addition to using Zend_Session
or any of these PEAR packages it is also pretty easy to write your own Session Handling. All you have to do is implement the required methods. See the example for session_set_save_handler in the PHP Manual.
As of PHP5.3 you could implement the callbacks with lambdas, so you don't have to clutter the global namespace with functions.
OTHER TIPS
Zend_Session
would probably do it. and Zend_Session_SaveHandler_DbTable
there is also a save handler for flat file I believe.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow