ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Issue with multi_login_sites config option since upgrading

June 18, 2012 6:49am

Subscribe [2]
  • #1 / Jun 18, 2012 6:49am

    Linda A

    666 posts

    I recently caught up with the most recent versions and builds of 1.7.* and since then I seem to have an issue with multiple login using the old config.php method. I am guessing it might be related to this item from the change log?

    “Fixed a bug (#17216) where the “Allow multiple log-ins” config was not enforced strictly enough.”

    My config.php has the following setup for this:

    $conf['multi_login_sites'] = "http://www.westeros.org/|http://www.hippoiathanatoi.com/";

    I get logged into the first site but I do not seem to get logged into the second site. Did anything else change with this upgrade that I need to tweak for it to work?

     

     

  • #2 / Jun 19, 2012 12:29pm

    Dan Decker

    7338 posts

    Hi Linda,

    Nice to see you again!

    Are you using MSM on this site? I’m guessing “yes”, just need to be sure 😊

    Have you updated to the latest version of MSM for ExpressionEngine 1.7? Are you working off the info in this Wiki?

    Are you removing index.php? Do you have any other MSM related values set in config.php?

    I look forward to your reply!

    Cheers,

  • #3 / Jun 19, 2012 4:37pm

    Linda A

    666 posts

    Hi Dan 😊

    I am actually not using the MSM since the site was setup well before it existed and isn’t well suited to using the MSM. So I am just using the old approach of multiple index.php and path.php files plus that config option.

    I am removing the index.php, but I was doing that before the upgrade too and the multi login worked fine then.

  • #4 / Jun 21, 2012 2:58pm

    Shane Eckert

    7174 posts

    Hi Linda,

    Would you mind showing the document you are following to set this up?

    I am not familiar with doing this outside of MSM.

    Thank you,

  • #5 / Jun 21, 2012 5:36pm

    Linda A

    666 posts

    After some poking around (I set this up years ago), I found this page: http://expressionengine.com/wiki/Running_Multiple_Domains_or_Subdomains_or_Subsites/

    However, that only addresses using index.php and path.php to setup multiple sites and subsites. It doesn’t actually address the login issue. That setup was provided on the forum and I don’t think those posts are around any longer. I am not finding them when I am searching, anyway.

  • #6 / Jun 25, 2012 1:17pm

    Dan Decker

    7338 posts

    Hi Linda,

    Wow, going old-school huh?

    I have to state that the solutions found in the wiki are not really supported, just a caveat.

    But, it would be handy to get a peek at your index.php and path.php setups. Off the cuff, I would suggest making sure:

    $site_url = "http://www.example.com/subdirectory/";

    match exactly the values in the list:

    $conf['multi_login_sites'] = "http://www.westeros.org/|http://www.hippoiathanatoi.com/";

    Let’s see if we can figure this one out anyway.

    Cheers,

  • #7 / Jun 25, 2012 1:26pm

    Linda A

    666 posts

    Not old-school by choice, but there wasn’t an MSM when I set the sites up and the way they are setup won’t work well with the MSM. 😊

    In any case, from one EE install I run two sites:

    http://www.westeros.org/
    http://www.hippoiathanatoi.com/

    I also have five subsites on westeros.org, each with their own path.php, but they’re not an issue as far as logins go since the cookie gets set for all of westeros.org (they’re not subdomains, just folders, like http://www.westeros.org/GoT/ and so on). So the login issue is just between the two different domains. Here’s the path.php for Westeros:

    <?php
    
    // DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
    
    // Path to the directory containing your backend files
    
    $system_path = "/home/sites/westeros.org/www/html/Scripts/ExpressionEngine/SYSTEMDIRECTORY";
    
    $template_group = "";
    $template = "";
    $site_url = "http://www.westeros.org/";
    $site_index = "";
    $site_404 = "";
    
    ?>

    It is exactly the same for the other site except the site url is http://www.hippoiathanatoi.com/.

    Ultimately, though, I don’t think the path.php is the issue here. I think it is with the config.php option I initially mentioned:

    $conf['multi_login_sites'] = "http://www.westeros.org/|http://www.hippoiathanatoi.com/";

    Before I upgraded, each login would log me into both sites. But now it just logs me into the first domain. Surely it has to relate to the changelog item I quoted? (“Fixed a bug (#17216) where the “Allow multiple log-ins” config was not enforced strictly enough.”)

     

     

  • #8 / Jun 25, 2012 2:39pm

    Linda A

    666 posts

    The multi login process is also described here: http://expressionengine.com/wiki/Multi_Site_Login

    There it is noted as working both with and without MSM and this was certainly the case on EE 1.7.0, but it is no longer the case on EE 1.7.3.

    I have also tried having $site_index = “index.php”; defined in path.php but this makes no difference.

  • #9 / Jun 28, 2012 12:35pm

    Dan Decker

    7338 posts

    Hi Linda,

    I have to ask, do you have config.php set with:

    $conf['allow_multi_logins'] = 'y';

    Aside from that, I’m really limited in how I can recreate this or call it a bug. This scenario is outlined in the Wiki, but it in no way an officially supported set-up.

    I understand the frustration that means. What I can do is try to replicate the issue under MSM. If it fails under MSM, then we can call it a bug.

    I look forward to your reply!

    Cheers,

  • #10 / Jun 29, 2012 9:14am

    Linda A

    666 posts

    Well, allow_multi_logins didn’t even show up at all in my config file. However, adding made no difference.

    Are you sure allow_multi_logins doesn’t refer to the ability to have multiple accounts logged in from the same computer by using session IDs as well as cookies?


    I understand that this approach isn’t officially supported any longer, but since it was working before I upgraded then it seems something has been changed which removed this option. Unless there was a specific reason for this, such as a security concern, it seems like it might just have been an oversight? So not a bug, but not a feature that necessarily had to be turned off either?

    Is there any way of finding out what has changed in regards to the login process between 1.7.0 (Build 20101018) and 1.7.3?

    (As an aside…do you know if the multiple index.php/path.php approach to running multiple subsites will still work in EE 2.* or if MSM is the only option? Disregarding the login issues here, I am just talking about the sites being able to run like that at all.)

  • #11 / Jun 29, 2012 9:23am

    Linda A

    666 posts

    Removed content, clarified in previous response instead.

  • #12 / Jul 02, 2012 3:08pm

    Dan Decker

    7338 posts

    Hi Linda,

    Are you sure allow_multi_logins doesn’t refer to the ability to have multiple accounts logged in from the same computer by using session IDs as well as cookies?

    Honestly, I’m not sure. It’s an undocumented hidden config variable. It seemed relevant 😕

    I understand that this approach isn’t officially supported any longer, but since it was working before I upgraded then it seems something has been changed which removed this option.

    I do understand where you are coming from here, but since this is all from the Wiki, this would have never been a supported solution. Especially since MSM was made available. But I really want to help you fix it!

    (As an aside…do you know if the multiple index.php/path.php approach to running multiple subsites will still work in EE 2.* or if MSM is the only option? Disregarding the login issues here, I am just talking about the sites being able to run like that at all.)

    EE 2 still allows for this, indeed. A similar method is one way to create multi-lingual sites in ExpressionEngine 2.

    As to your other questions, I will have to ping a developer for clarification. So, lemme go poke Robin and see if she can chime in.

    Cheers!

     

  • #13 / Jul 02, 2012 3:41pm

    Linda A

    666 posts

    I do understand where you are coming from here, but since this is all from the Wiki, this would have never been a supported solution. Especially since MSM was made available. But I really want to help you fix it!

    Very much appreciated. 😊 I am finding that when I do run into any issues with the site right now, it is really hard to get any community help to supplement the official support because most everyone has moved onto 2.x. Once that gallery importer shows up, I hope to drop everything else to make the move as fast as possible.

    As to your other questions, I will have to ping a developer for clarification. So, lemme go poke Robin and see if she can chime in.

    Thank you. 😊

  • #14 / Jul 04, 2012 3:35pm

    Dan Decker

    7338 posts

    Hey Linda,

    No news as of yet, other than Robin has looked in on this and wants to get us a meaningful answer.

    Hold tight 😊

    Cheers,

  • #15 / Jul 04, 2012 4:01pm

    Linda A

    666 posts

    Thank you for the update. 😊 Fortunately, the second site on the login list is my much smaller, personal site, not the hugely busy fansite, so I am managing to work around the issue for the time being.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases