From: Alex B. <en...@tu...> - 2001-05-06 01:57:30
|
hi all, I've banged out a very, very simple class that wraps php4's sessions - I've done this because I can see that it might be useful for people to be able to use their own custom session code in special situations. This class has the following methods: Start_Session() Destroy_Session() Destroys the session. Returns true on success Register($var) Registers $var in the session Returns true on success Unregister($var) Unregisters $var from the session Returns true on success Unset_All() Nukes the session, forgets all registered variables. Check_Registered($var) Checks to see if $var is in the session. Returns true if the variable exists in the session In bc we haven't had use for the session_encode and other functions, but I want to check that people don't need those because it's _extremely_ easy to add them. This hasn't been tested (or checked thoroughly, for that matter) - I want to add everything I need before doing that. _alex -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |