Re: [Cgi-session-user] database vs. file storage
Brought to you by:
sherzodr
From: Mark S. <ma...@su...> - 2005-12-01 02:44:17
|
On Wed, Nov 30, 2005 at 03:12:36PM +0200, Aton wrote: > hello, all. > i've read the POD on CPAN but it's still unclear to me what is the major > difference in the way i store the sessions. is database storage faster > then file or is it safer, why should one preffer db to files? I prefer database storage. The rest of my application data is already in there. A database can have better security, because it has its own permission and authentication system, while file-based sessions often end up owned by "nobody", which other users on a shared system can access. I'm not so concerned about "faster", since databse storage is "fast enough". I think the only reason /not/ to use database storage is because the database isn't be used for anything else. In that case, I would consider file storage for simplicity. Mark -- http://mark.stosberg.com/ |