Sunday, November 28, 2010

MODx IE login problem

It seems that Internet explorer has some problem with login on "some" machine.
The culprit result to cookie issue, where by resetting cookie on the client browser seems to fix the issue.
But asking user to clear their cookie is a near to impossible things todo.

A nice tweak would be resetting the cookie via javascript on the login form itself.
Example:
document.cookie = "PHPSESSID=; __utma=; __utmc=; __utmz=; __utmb=; path=/; domain=.example.com; expires=Thu, 01-Jan-1970 00:00:01 GMT;";

4 comments:

Diego Guzman said...

Hi James, I know you wrote this about two years ago, but I'm having the exact same problem and I haven't found any help on the web or their forums.

I seems to be that the login addon breaks when we use multiple contexts (in my case for internationalization).

If you read this, could you tell me exactly where I'd put document.cookie?

Thanks in advance!

James Tt said...

Hi Diego,

you may put it inside the login chunk as a javascript :)

Diego Guzman said...

Wow thank you so much for the quick response.

I tried it just as you said and tested in virtual machine, so far so good, it seems to be working marvels.

You rock bro!

James Tt said...

haha no problem bro :)