If user logs into my site by typing MySite.com in browser (with no WWW in front of MySite.com), then user will get logged out if he clicks on a link such as WWW.mysite.com/whatever, because the the link has WWW infront of it

AND VICE VERSA!

how to cure this problem?

Comments

vm’s picture

typically a cookie problem
have a look at the previously posted topics dealing specifically with this issue.
http://drupal.org/search/node/double+login

jason342’s picture

No my problem is no cookie. I have cookie unabled and have the same problem.

The problem is, it seems Drupal can not recognise the same user if he should click a link that is not exactly the same link he accessed the site with.

If user accessed site with MySite.com/whatever and click www.Mysite.com/whatever = log out!

And

If he accessed site www.MySite.com/whatever and click Mysite.com/whatever = log out!

Surly someone else has this problem and could help me out with it?

thomherfs’s picture

I haven't run into this before, since I have all my links onsite using "www.", but to check it I edited a link to remove the www prefix and --- sure enough, it logged me out.

Houston, we appear to have a problem.