[Answered ]-What is the best (most efficient, reliable, secure and fastest) method to store sessions in Django

2👍

https://docs.djangoproject.com/en/dev/topics/http/sessions/

My Opinions:

I would recommend the write-through cache. It combines the database-backed sessions and cached sessions. The database-backed sessions is slower and the cached sessions is lack of persistence. The write-through cache combines them to make session persistent and faster.

Cookie-based sessions are fast while the data is small and insecure. But account information is not a good usage of it.

File-based session is not a good idea because it cannot scale, and it required disk I/O.

Leave a comment