SESSION_SAVE_EVERY_REQUEST behavior is overkill
|Reported by:||Huuuze||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I recently added "SESSION_SAVE_EVERY_REQUEST". As the name implies, the session ID is changed for every request made to the server. IMO, this is overkill. If your page has 10 images on it, the session ID will be changed 11 times (once for the initial page request and then 10 more times for each image file request). This also means 11 writes
to the DB (django_session), which could be problematic for some publicly hosted sites.
It'd be nice if the behavior of this setting only refreshed the session on the initial page request and not EVERY request.