How does digg or any other high-traffic site store user sessions? What do they use to store user sessions? File system, DB (which?), Memcache, or both?
Imagine a simple situation. The recorded user set the Remember Me flag during login. We set a session cookie with an expiration date of 1 year. For example, we save the session in memcache, but we must also record this session in the database (in my version). Only users with the Remember Me flag are stored in the database. Is this the right way to store sessions? I mean sites with high traffic, of course (with two or more application servers, two or more databases, memecache servers, etc.). On small websites, default session storage (on the file system) is fine.
I tried to search on Google, but could not find any information about it. I read some solutions from the book "Advanced PHP Programming", but the main focus was on setting up a session storage handler.
Hope to hear some good ideas or links!
Thanks.
php session scalability high-load
Kirzilla
source share