How to delete session in Django -
i have used request.session['username']=username
. have read session in django documentation. did not understand request.session
. here session created if set request.session['username']=username
. in code doing del request.session['username']
not deleting session session getting replaced same session_key
different session data.
we need modify , tell session modified.
request.session['username']={} request.session.modified = true
Comments
Post a Comment