Re: [Fwd: Sessions in databases]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il pinguino volante wrote:
(There were some erroros in the previous email, I'm sorry)

Hi to all.

I have to realize an authentication system for a lot of users.

I heard that someone uses to store session states (?) into a database. I'd like to know how and, expecially, WHY to do it and what's would be better (considering that I CANNOT -d'oh!- edit the php.ini file).
Considering you cannot edit the php.ini-file i suspect you are on a shared host. Using the database for intense work in a shared environment is not always popular. I would guess that file based session-files are more scalable. And as you are using a shared hosting service you are probably not load balanced between physical different boxes and this would not gain from using the DB. So if you have to manage a large number of user sessions i would suggest you choose a VPS or deducated/colo box and then use DB with memcached in between for fast caching. That is the way i have done it for a couple of sites i am working on.



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux