Any detached/independent Session Library in PHP using Flat File or MySQL?
+1
A:
Zend_Session
would probably do it. and Zend_Session_SaveHandler_DbTable
there is also a save handler for flat file I believe.
RageZ
2010-02-07 02:27:50
+1 Thanks. Is that a ready-to-go or needs lots configuration?
Viet
2010-02-07 02:30:27
I don't believe needs a lot of configuration, never used the saver handler but using `ZF` quiet a lot usually it is well documented and I believe you can easily find some blog/tutorial about this.
RageZ
2010-02-07 02:38:13
+1
A:
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.
Gordon
2010-02-07 13:46:19