django provide same session everywhere -


i'm working on django app use external base authenticate user. after login, informations retrieved session. issue initialized session same same session_id whatever browser or desktop use without re-authenticate...

authentication:

def login(request):     if request.method == 'post':         login = request.post["login"]         password = request.post["password"]         #do authenticate requesting url         request.session['infos'] = #infos string recieved         return httpresponseredirect(reverse('website:index')) 

middleware_classes contains django.contrib.sessions.middleware.sessionmiddleware

session_engine = "django.contrib.sessions.backends.db"

installed_apps contains django.contrib.sessions

an other effect of after being authenticated somewhere, csrf failure when try elsewhere...

thanks helping me!

the answer in cache:

the cache made django provide same cookie @ every request same session_id. deactivacted until set cache better settings.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -