i have a Web Application where Cookies and Session are both important.
Since the Web Application is load balanced on different server, i am looking for suggestions to Alternative Store for the Session data that all server will be able to access.
Some sessions could live up to severals days.
The solutions that come to my mind:
- Native PHP Sessions (this is the one i want to stop using)
- MySQL Database
- Serialize and write to a file (i want to avoid this, for performances)
- Memcache (however it could become very big or older data getting knocked out)
Thanks in advance!
You could use a no sql database like Couchbase or Redis, it is similar to using Memcache however they both have hard-disk persistence whereas Memcache is just an in-memory cache and so you get the problem where old data can get dropped when Memcache runs to its limit.