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
request.session.flush() deletes the session stored. Refer this link:https://docs.djangoproject.com/en/2.1/topics/http/sessions/