Hi-

Using single sign on shows same users as many times as youhave sites with single sign on

If you login as somebody (in my case user called admin) to the site called www.mysite1.com and the continue to www.mysite2.com, you will see 2 admins in online users list and if you continue to www.mysite3.com, you will have them already 3 times :) You can continue the list :)

Kind of annoying :) Can you fix that behaviour

Regards,

Virgo

Comments

denney’s picture

This is partly related to my issue here:

http://drupal.org/node/112288

This is apparently by design and caused by your web browser.

Yablargo’s picture

By the way, I have this same problem ( 1 user logged in per subsite he visits).

I did not have this problem untill I just recently upgraded from 5.1 to 5.3

jeff.ferrari’s picture

I had the same issue, fixed by setting the cookie domain in settings.php to be my master site's url. I noticed that my browser was getting 1 cookie from each domain, and obviously a unique session id for each.

ie
MAIN - example.com
SLAVE - dev.example.com

cookiedomain is example.com in both cases.

wayland76’s picture

Two things:
1) Can anyone confirm whether this works if the master domain is not a parent domain of the slave sites?
2) I added a comment about this to the FAQ: http://drupal.org/node/226356

sid3000’s picture

I have one main site (mydomain.com) and one members subsite (members.mydomain.com). In this case members.mydomain.com is master site but cookie domain in settings.php of master site (members.mydomain.com) is mydomain.com. And that works perfectly.

DerTobi75’s picture

Hi,

I tried to setup the cookie domain for all slave sites to the master sites cookie domain, but it did not work!

Is there another solution? I have four different domain names, and for every domainname the user is counted in Who is online, when he visits one of the sites.

Regards,

Tobi

DerTobi75’s picture

Hi,

I just think, that problem can only be fixed with the Who Is Online Block Code.

It looks like that there are some problems with the DISTINCT command in the SQL statement that greps all online users!

Regards,

Tobi

wayland76’s picture

Status: Active » Closed (fixed)

DerTobi has found one of the two possible solutions, neither of which involve the Shared Sign-on module, so since I was for some unknown reason unable to reassign this to core, I've opened a new issue (see below). Please continue discussion there.

http://drupal.org/node/112993