Praveen I would check that cookies are being returned from the browser, the session information in stored in them, and did you check that get_user() is returning the user corresponding to the ID?
François On Oct 22, 2013, at 7:53 AM, Praveen Madhavan <praveenm...@gmail.com> wrote: > Hello All, > > I am trying custom authentication with django, I wrote a class and > filled it with the methods authenticate and get_user, I also added this > authentication to the AUTHENTICATION_BACKENDS in settings.py file. > > I have called my custom authenticate method and followed it up with login > in my view. > > Everything seems to work fine, is_authenticated returns true for the user > after login, but the subsequent requests have request.user as anonymous, > unable to figure out the reason, require your help > > > Thanks > Praveen.M > > -- > 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 django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > 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/b2da7920-4154-4315-b4e7-957c869aa727%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. 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/334003D9-F80D-4A9A-BD62-0C7E618BACBC%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.