Closed (fixed)
Project:
Shared Sign-On
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2007 at 13:10 UTC
Updated:
5 May 2008 at 03:52 UTC
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
Comment #1
denney commentedThis is partly related to my issue here:
http://drupal.org/node/112288
This is apparently by design and caused by your web browser.
Comment #2
Yablargo commentedBy 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
Comment #3
jeff.ferrari commentedI 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.
Comment #4
wayland76 commentedTwo 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
Comment #5
sid3000 commentedI 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.
Comment #6
DerTobi75 commentedHi,
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
Comment #7
DerTobi75 commentedHi,
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
Comment #8
wayland76 commentedDerTobi 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