Login once, be logged to multiple siteaccess

Author Message

Maxime Thomas

Friday 26 January 2007 2:37:24 am

Hi,

Ok here's the deal : I've got a multilingual site with a siteaccess for each language (en & fr).
When I come to the home page, the default siteaccess is "fr". I'm logging in and access to content of fr siteaccess.

So when I click on English to access the English version of the content, I swap to "en" siteaccess. But I'm not logged in this siteaccess. It's normal.

I know there's some mechanism in 3.9.x to log in once and be logged on multiple siteaccess through the "AdditionalLoginFormActionURL" key of site.ini but my version of ez is 3.8.6...

Of course, I can patch only this functionality but I prefer not to.

Is someone has an idea ?

Max

Maxime Thomas
[email protected] | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Ɓukasz Serwatka

Friday 26 January 2007 3:30:36 am

You need to add in site.ini.append.php for your all public siteaccesses (en, fr):

[Session]
SessionNamePerSiteAccess=disabled

Then if you are once logged in for EN, you won't be ask again for FR.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Maxime Thomas

Friday 26 January 2007 7:14:11 am

Thanks ! It works !

Maxime Thomas
[email protected] | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Xavier Gouley

Thursday 17 July 2008 5:37:10 am

Sorry but it seems that this solution does not work under ez4.0 with MatchOrder=host :

I have 2 siteaccess "fre" and "eng", mapped like this in the override/site.ini :

MatchOrder=host
HostMatchMapItems[]=admin-dev;fre_admin
HostMatchMapItems[]=eng.v-dev;eng
HostMatchMapItems[]=fre.v-dev;fre

And in both siteaccess/[fre|eng]/site.ini, I have :

[Session]
SessionNamePerSiteAccess=disabled
[SiteSettings]
SiteName=Intranet
SiteURL=v-dev
LoginPage=embedded
AdditionalLoginFormActionURL=http://eng.v-dev/user/login

When I login from fre.v-dev, I'm not logged into eng.v-dev...

Xavier Gouley
http://www.gxapplications.com/eng_blog/GX-Admin-s-Blog/

Kristof Coomans

Thursday 17 July 2008 5:47:00 am

Hi Xavier

See http://issues.ez.no/9125

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.