For my project I created a templatetag which handles login, logout, get
profile etc. This way I can show a login/out box on every page by
including the tag in the main template.

There is one problem.

After logging out I want to redirect the user so the cookies etc, are
gone.
This is what I did (without success) because the result is passed over
to the template I suppose

### snippet ###
if current_user.is_authenticated():
      if current_action == "logout":
         try:
            del request.session['member_id']
         except KeyError:
            pass
         logout(request)
         return HttpResponseRedirect("http://www.google.com";)  << just
to test
      elif current_action == "get_profile":
         .....
      elif current_action == "change_password":
         .....
### end snip ###

Is there a way to pass the command to the correct handler???


--~--~---------~--~----~------------~-------~--~----~
 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