I am having a problem when I log out from my site.

Here is the scenario I am using the @login_required for logging into
my site.
Then I have the link to log out very similar to the admin pages.
The only problem I am having is when I log out and either hit the back
button or go to my home
page from the browser it does not give me the login prompt window.
But, when I hit the home button link on the logout page, I get the
login window.

Here is a snippet of my logout function:

def logout_view(request, template_name='registration/
logged_out.html'):
    logout(request)
     return render_to_response(template_name, {'title': _('Logged
out')}, context_instance=template.RequestContext(request))

Thanks,
Jeff


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to