Hi,

I am trying to implement logout for users in my app. My problem is : When a 
user logs out and clicks back button in browser he is able to access the 
website again without logging in.

My current code for logout function is-->

def logout_user(request):
>     del request.session['userid']
>     logout(request)
>     return render_to_response('index.html')
>

Any help will be appreciated.

Regards,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/183577c1-57b8-47be-9308-19205cb11bd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to