[Answered ]-Session issue with django+apache+mod_wsgi

2👍

There are a couple of different options for this.

In order of likelyhood (imho):

  • The session backend uses the cache system to store the sessions and you’re using the locmem cache backend
  • The session backend isn’t storing the cookies (secure cookies enabled? cookie timeouts? incorrect date on the server?)
  • The session middleware might not be loaded (custom settings for production server?)

Storing the session in the cache is only a good solution if you use memcached as the cache backend. So if you’re storing the sessions in cache, make sure you use memcache 🙂

Either way, check if SESSION_ENGINE is set to django.contrib.sessions.backends.db

👤Wolph

Leave a comment