#25489: SESSION_SAVE_EVERY_REQUEST Appears to have broke in 1.8.4
----------------------------------+--------------------
Reporter: thornomad | Owner: nobody
Type: Uncategorized | Status: new
Component: contrib.sessions | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------
After upgrading to Django 1.8.4 the `request.session.session_key` value
always returns `None` for a non-authenticated user even when
`SESSION_SAVE_EVERY_REQUEST` is set to `True`.
I was able to reproduce this by creating a new project and app using a
very basic view:
{{{
# settings.py
SESSION_SAVE_EVERY_REQUEST = True
# views.py
from django.http import HttpResponse
def index(request):
return HttpResponse('Session Key is: %s' %
request.session.session_key)
#urls.py
from django.conf.urls import url
from test_app import views
urlpatterns = [
url(r'^$', views.index, name="index"),
]
}}}
In Django <=1.8.3 this view will start to return a session key after the
first page load (you have to refresh is a second time, of course, but you
will get a key!).
But with Django 1.8.4 it continues to return `None` even after refreshing
the browser. (Be sure to remove your site cookies during testing because
the key can persist between downgrading and upgrading of Django.)
First time submitting a ticket ... I hope this is helpful.
--
Ticket URL: <https://code.djangoproject.com/ticket/25489>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.e2b67a560d681e4060f5aa8414cf7356%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.