views:

28

answers:

2

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
+1 Thanks. Is that a ready-to-go or needs lots configuration?
Viet
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
+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
+1 thanks Gordon.
Viet