python - How to create a new session in Django? -
python - How to create a new session in Django? -
is possible create new session in django? instance have url going opened in new tab , new session created whenever visits url?
i'm assuming delete previous session cookie? in case:
to clear session info cookie:
request.session.flush()
to clear session info maintain same cookie utilize dict.clear():
request.session.clear()
for details: https://docs.djangoproject.com/en/dev/topics/http/sessions/
python django
Comments
Post a Comment