Any detached/independent Session Library in PHP using Flat File or MySQL?
Asked
Active
Viewed 127 times
2 Answers
1
Zend_Session
would probably do it. and Zend_Session_SaveHandler_DbTable
there is also a save handler for flat file I believe.

RageZ
- 26,800
- 12
- 67
- 76
-
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 Feb 07 '10 at 02:38
1
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.

Samuel Liew
- 76,741
- 107
- 159
- 260

Gordon
- 312,688
- 75
- 539
- 559