Shawn McKenzie wrote:
Just curious, what is the advantage of using a custom session handler, such as saving session data in MySQL?
The main reason you might want to store session informaton in a database instead of in files is that you can then load balance your site across multiple servers. If you save your session data in a file and the user is transferred from one load balanced server to another (eg with dns round robin) in the middle of a transaction the session data is lost.
If you are on a shared server it may also be possible for other users to take a peek at the contents of the session data if they are stored in files. (of course you should not save sensitive data in the session anyway).
TIA, Shawn
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php