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

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -