Guess I didn't mention that in my test I was using sessions in both cases
(the default stored as files on a files system) and with database routines
to store the same session data in a MySQL database.

http://www.php.net/manual/en/function.session-set-save-handler.php

the session data component with serialized data up to 65k (TEXT datatype),
typically using about 2k of components;

switching back and forth between files and db storage was as simple as
commenting out the session_set_save_handler() function.

Warren Vail


-----Original Message-----
From: DvDmanDT [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 4:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: $_SESSION vs Database Call


Probably depends on how efficient your database server is setup as well as
what harddisks you use and so on.. Also depends on how much data it's about
I think..

I'd use sessions if I was you..

-- 
// DvDmanDT
MSN: dvdmandt€hotmail.com
Mail: dvdmandt€telia.com
"Chris Thomas" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Just wondering, what is faster / more effecient,  storing a value in the
> session variable which gets stored on the filesystem (from what i
> understand) or database calls to re-get the information?
>
> Chris

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

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

Reply via email to