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

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -