Forum Moderators: coopster

Message Too Old, No Replies

Custom Session Class

Class to store session data in MySQL

         

Warboss Alex

11:01 am on Jun 29, 2004 (gmt 0)

10+ Year Member



Hey all,

Does everyone know of, has written a custom session handler (object-oriented) which stores session data in a MySQL database?

I'm trying to do my own but it's not working ..

Has anyone done this before?

Alex ...

coopster

12:19 pm on Jun 29, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You are going to be using PHP's session_set_save_handler [php.net] function. There is a link on that page to a fairly decent tutorial if you want to continue rolling your own. Otherwise, there are a couple classes that I am aware of:

[pear.php.net...]
[phpclasses.org...]

Warboss Alex

12:37 pm on Jun 29, 2004 (gmt 0)

10+ Year Member



Eek! Not the classes beginning with 'P'!