Another day, another Auth component headache. Everything was working fine for me 开发者_Python百科until a couple of hours ago; at which point, I can no longer log my Auth-logged-in user out. I click on the link to go to users/logout, or I type users/logout in directly; the application seems to think about it for a while, before redirecting to the index page, with my logged in use still logged in.
It seems as though the logout function of the users controller isn't even being touched, as I can't seem to get a die statement to work in there. Can anyone think of a reason why I would be being bounced away from my logout function? Or some sensible steps I can take to discover the truth about what is going on here? As usual I just cannot think of anything I could have done to turn a working application into a broken one...
ETA: Asking Safari to remove all cookies seems to clear the problem (though of course it reemerges). Are cookies likely to be an issue in this sort of thing? If so, what can I do to ensure that cookies don't prevent the possibility of logging out of my application?
Please post the code for your logout
method, you also said 'the login function isn't even being touched', it shouldn't be if you're trying to log the user out
精彩评论