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

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -