使用平面文件或MySQL的PHP中是否有任何分离/独立的会话库?
Zend_Session
would probably do it. and Zend_Session_SaveHandler_DbTable
there is also a save handler for flat file I believe.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.