Hi,

I am doing the below in my login form. I am setting the session cookie
expiry to expire on close of browser unless the user chooses the
remember me on this computer option.

My problem is that the cookie expires mid-way and too frequently
between user actions on IE. Is there anything more i should do to keep
IE happy?

    def login(self, request):
        if self.is_valid():
            auth_login(request, self.user)
            request.user.message_set.create( message="Successfully
logged in as %(username)s." % { 'username' : self.user.username } )
            if self.cleaned_data["remember"]:
                request.session.set_expiry(60 * 60 * 24 * 7 * 3)
            else:
                request.session.set_expiry(0)
            return True
        return False

Thanks & Regards
Vamsy

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

Reply via email to