php-general | 2004032
Date: 03/25/04
- Next message: David Chen: "Re: [PHP] Crash in PHP5RC1 but can't find where"
- Previous message: DvDmanDT: "[PHP] Re: $_SESSION vs Database Call"
- Maybe in reply to: DvDmanDT: "[PHP] Re: $_SESSION vs Database Call"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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:dvdmandt <email protected>]
Sent: Thursday, March 25, 2004 4:55 PM
To: php-general <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" <cwthomas <email protected>> skrev i meddelandet news:20040325231918.30078.qmail <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
- Next message: David Chen: "Re: [PHP] Crash in PHP5RC1 but can't find where"
- Previous message: DvDmanDT: "[PHP] Re: $_SESSION vs Database Call"
- Maybe in reply to: DvDmanDT: "[PHP] Re: $_SESSION vs Database Call"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

