Would I also have to write the sess_write() and sess_read() functions? If I want to store an array or object, how would I go about doing that?


Paul

From: Jason Barnett <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Customer Session Handlers Using MySQL
Date: Tue, 25 May 2004 12:41:43 -0500

1) Does this mean that I cannot use the $_SESSION[] variable to enter information into the session?

Sure you can. When you use a custom session handler then setting / getting the $_SESSION[] variables will use sess_write and sess_read in order to write/read that information. I think the only problem with using $_SESSION variables is when you use session_register. So, I just use $_SESSION for everything and all is good.


2) How can I pass objects from one page to another, if I am using the this type of session handler?

You'll still persist sessions as you would without the custom session handler, e.g. sending the session ID as part of the URL. The main difference is that now you have a custom sess_open function to tell PHP where / how to retrieve the session information for that user.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


_________________________________________________________________
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! http://join.msn.click-url.com/go/onm00200362ave/direct/01/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to