<![CDATA[ [solved] Login with multiple contexts - My Forums]]> https://forums.modx.com/thread/?thread=79375 <![CDATA[Re: [solved] Login with multiple contexts]]> https://forums.modx.com/thread/79375/login-with-multiple-contexts?page=2#dis-post-559085 Quote from: visvoer at Oct 17, 2012, 02:43 AM
Changing the system setting: session_cookie_path did the trick.
It needs to be changed to "/"
instead of " "
Many thanks
]]>
a.livak Jun 14, 2018, 09:37 PM https://forums.modx.com/thread/79375/login-with-multiple-contexts?page=2#dis-post-559085
<![CDATA[Re: Login with multiple contexts]]> https://forums.modx.com/thread/79375/login-with-multiple-contexts?page=2#dis-post-440474 It needs to be changed to "/"
instead of " "]]>
visvoer Oct 17, 2012, 02:43 AM https://forums.modx.com/thread/79375/login-with-multiple-contexts?page=2#dis-post-440474
<![CDATA[Re: Login with multiple contexts]]> https://forums.modx.com/thread/79375/login-with-multiple-contexts?page=2#dis-post-439606
I will log an paid emergency ticket on the modx website, hopefully splittingred will be handling this ticket so it gets solved
]]>
visvoer Oct 10, 2012, 07:14 AM https://forums.modx.com/thread/79375/login-with-multiple-contexts?page=2#dis-post-439606
<![CDATA[Re: Login with multiple contexts]]> https://forums.modx.com/thread/79375/login-with-multiple-contexts?page=2#dis-post-439590
I'm afraid I'm swamped getting ready for MODXpo Europe, where I'm doing two presentations. I'm not really the guy to fix this anyway because I have no experience at all with Babel and don't spend a lot of time with multiple contexts.

Sorry I can't be more help.


------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone: http://bobsguides.com/modx.html]]>
BobRay Oct 09, 2012, 10:23 PM https://forums.modx.com/thread/79375/login-with-multiple-contexts?page=2#dis-post-439590
<![CDATA[Re: Login with multiple contexts]]> https://forums.modx.com/thread/79375/login-with-multiple-contexts?page=2#dis-post-439250 So i did a clean install of modx on a test server and only installed the login snippet.
Then i configured the web context as described in here:
http://rtfm.modx.com/display/ADDON/Login.Basic+Setup

Afterwards i configured the it context as described in here
http://www.multilingual-modx.com/blog/2011/seo-friendly-multilingual-websites-with-modx-and-babel.html

But it is giving me the same error as on the live environment. So i can reproduce the issue with only 1 component installed with hardly no custom coding (only language plugin and .htaccess file are modified)

So there is definitly something wrong in my setup, ACL or something else???

So my question is can i hire your services to fix this issue?? Or would you help me for free, but in that case i will make a donation to the modx community...

I am a little bit desperate because this site should have been up-and-running last week.
This is the only thing that is missing (the login in the italian context)

If you are willing to help, can you send me a private message so i can send you all the passwords and links to the test server...

Much appreciated]]>
visvoer Oct 06, 2012, 08:05 AM https://forums.modx.com/thread/79375/login-with-multiple-contexts?page=2#dis-post-439250
<![CDATA[Re: Login with multiple contexts]]> https://forums.modx.com/thread/79375/login-with-multiple-contexts?page=2#dis-post-439186
When you edit the context by right-clicking on it in the Resource tree, what shows up on the Context Settings tab for web and it.


------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone: http://bobsguides.com/modx.html]]>
BobRay Oct 05, 2012, 04:42 PM https://forums.modx.com/thread/79375/login-with-multiple-contexts?page=2#dis-post-439186
<![CDATA[Re: Login with multiple contexts]]> https://forums.modx.com/thread/79375/login-with-multiple-contexts#dis-post-439120
i am not getting it anymore...

So i have 2 contexts.
In the web context i have the following

[[!Login? 
&loginTpl=`loginTpl`
&logoutTpl=`logoutTpl` 
&errTpl=`lgnErrTpl` 
&logoutResourceId=`1`
&loginResourceId=`13` 
&redirectToPrior=`0`
&contexts=`web,it`]]


and in the it context

[[!Login? 
&loginTpl=`loginTpl` 
&logoutTpl=`logoutTpl` 
&errTpl=`lgnErrTpl` 
&logoutResourceId=`16`
&loginResourceId=`23` 
&redirectToPrior=`0`
&contexts=`web,it`]]


I added some debug code on the first page after the login.

$result = '';
$result = $result .$modx->user->get('username') .  ' # ' .$modx->context->key;
$result = $result .$modx->getLoginUserName('web') .' # ' . $modx->getLoginUserName('it'); 
$result = $result .$modx->user->isAuthenticated('web').' # ' .$modx->user->isAuthenticated('it');
$result = $result .$modx->user->hasSessionContext('web').' # ' .$modx->user->hasSessionContext('it');
return $result;


When i do a login (with username 'engels' in the web context, which is succesful, i get:
engels # web # engels # engels # 1 # 1 # 1 # 1


but it goes wrong in the italian context
- when i do a login in the italian context
- when i am succesfully logged in, in the web context and then switch to the it context
i receive:
(anonymous) # it # # # # # #


Sombedy any ideas why i am suddenly logged in as anonymous...

I had this working last week.

The only thing that changed that i could think is some hosting setting.
At first i was working on a url like this
http://registeritaly.domain.org.server.hosting.com
and then they changed it to
http://registeritaly.domain.org

Could this have something to do with that????]]>
visvoer Oct 05, 2012, 03:53 AM https://forums.modx.com/thread/79375/login-with-multiple-contexts#dis-post-439120
<![CDATA[Re: Login with multiple contexts [SOLVED]]]> https://forums.modx.com/thread/79375/login-with-multiple-contexts#dis-post-438271 When i did the register, the newly added users are added to the customers user group but this group didn't had access to both contexts

Super thanks for all your help...]]>
visvoer Sep 26, 2012, 03:34 AM https://forums.modx.com/thread/79375/login-with-multiple-contexts#dis-post-438271
<![CDATA[Re: Login with multiple contexts]]> https://forums.modx.com/thread/79375/login-with-multiple-contexts#dis-post-437741
Does a user who is not logged in have Context Access ACL entries giving them access to both Contexts? (IOW, the Anonymous user group)?


------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone: http://bobsguides.com/modx.html]]>
BobRay Sep 20, 2012, 11:22 PM https://forums.modx.com/thread/79375/login-with-multiple-contexts#dis-post-437741
<![CDATA[Re: Login with multiple contexts]]> https://forums.modx.com/thread/79375/login-with-multiple-contexts#dis-post-437690 Perhaps, BobRay, Sottwell or one of the other gurus or devs know?]]> fuzzicallogic Sep 20, 2012, 09:39 AM https://forums.modx.com/thread/79375/login-with-multiple-contexts#dis-post-437690