Split Sessions?

Events happening in the community are now at Drupal community events on www.drupal.org.
Flying Drupalist's picture

Hi, all the guides I've read suggested that for sharing users you need to share the sessions table. But that means that when a user is logged in on one site, all other site tracks that user as logged in. To make the who's logged in block work, would it be wiser to split up the session tables?

Is there any reason why I shouldn't? Thanks.

Comments

not exactly....

macieq's picture

When you login to sessions are going the session from actually using domain - when you login from another domain the cookie set will be different. You can not login once and then change domain. You must login yourself another time. This table is "shareable".

Hi, sorry for being unclear.

Flying Drupalist's picture

Hi, sorry for being unclear. My problem was that when a user is logged in on one site, the who's online block will show him logged in on ALL sites if sessions is shared. Would unsharing it fix this problem?

Thanks.

I think...

macieq's picture

I think - yes. It would help in my opinion.

Having a separate session

shyamala's picture

Having a separate session table for each of the sites will resolve the issue.

Netlink Technologies Ltd
http://shyamala-drupal.blogspot.com/

Alright thank you. :)

Flying Drupalist's picture

Alright thank you. :)

You will loose one advantage

ajayg's picture

You will loose one advantage of sharing the session table though. ie. users will have to login on each site they go to (which may or many not be what you want for usability). I share the session across multiple subdomains and the biggest advantage is it gives single sign-on and log off functionaliy across all network sites. Because of portals like yahoos and google provide this, more and more uses expect to have single sign on.

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: