Re: Session handlers
| From: | raditha dissanayake | Date: | Sat, 02 Oct 2004 00:50:09 +0000 |
| Subject: | Re: Session handlers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198469@lists.php.net to get a copy of this message | ||
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.