A
A
Artem Afonin2015-12-10 13:30:39
Django
Artem Afonin, 2015-12-10 13:30:39

Django+AngularJS: Can't get 'sessionid' when user is_anonymous(), what's the problem or how to solve it?

Django+AngularJS:
Can't get 'sessionid' when user is_anonymous(), accessing Session model, None returned. When creating a session, manually {request.session._get_or_create_session_key}, the session is created, BUT there are 2 records per 'session_data'. Tolley in the dzhangovskaya session is not created specially for the session in the database for guests, or I did not understand something.
What is the problem or how to solve?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-12-10
@sim3x

stackoverflow.com/questions/25476284/how-to-capture...
SESSION_SAVE_EVERY_REQUEST = True

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question