0

In my project I need to force Django to forget session and create new one. Is there the way to do something like session.forget() in view file?

Thanks in advance

1 Answers1

1

request.session.flush() deletes the session stored. Refer this link:https://docs.djangoproject.com/en/2.1/topics/http/sessions/

Sa Gar
  • 56
  • 3