Nope, I don’t need a cookie prefix, I have removed it since.
I use, Sessions + cookies for the control panel and cookies only for the front end.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
March 20, 2009 11:01am
Subscribe [4]#16 / Mar 24, 2009 5:18pm
Nope, I don’t need a cookie prefix, I have removed it since.
I use, Sessions + cookies for the control panel and cookies only for the front end.
#17 / Mar 24, 2009 5:23pm
If you want seamless login across multiple sites, try using cookies only for everything, no session_ids.
#18 / Mar 24, 2009 6:00pm
Ok, I’ll have a go tomorrow and will let you know.
Thank you again for your help 😊
#19 / Mar 24, 2009 8:22pm
Thanks _Oli, please let us know how that goes!
-greg
#20 / Mar 25, 2009 7:20am
Morning guys,
I had a go but it’s not working.
Quick question, when I login to siteA, I see cookies being written for siteA and only siteA..
Is this normal? Should I see additional cookies?
Sorry to keep this topic going but I cannot understand what is going wrong.
Thank you
#21 / Mar 25, 2009 5:13pm
If you have multiple login sites specified in your config.php, the cookie should be valid for multiple domains. Can you post again what you have in your config.php in that context?
#22 / Mar 25, 2009 6:26pm
Hello again,
Here we go,
$conf['app_version'] = "167";
$conf['license_number'] = "";
$conf['debug'] = "1";
$conf['install_lock'] = "1";
$conf['db_hostname'] = "localhost";
$conf['db_username'] = "user";
$conf['db_password'] = "password";
$conf['db_name'] = "dbname";
$conf['db_type'] = "mysql";
$conf['db_prefix'] = "exp";
$conf['db_conntype'] = "0";
$conf['system_folder'] = "../../system/";
$conf['cp_url'] = "http://www.site_a.com/system/index.php";
$conf['doc_url'] = "http://expressionengine.com/docs/";
$conf['is_system_on'] = "y";
$conf['allow_extensions'] = "y";
$conf['multiple_sites_enabled'] = "y";
$conf['multi_login_sites'] = "http://www.site_a.com/index.php|http://www.site_b.com/index.php";
$conf['forum_is_installed'] = "y";
$conf['cookie_prefix'] = "";:(
#23 / Mar 25, 2009 6:32pm
Also,
Cookies Setting in the cp are blank.
site_a’s lives in a folder though, not in the root. Would that make a difference?
I tried with a third site thinking that site_a was the problem but no luck… I tried many combinations, login from a to b then b to a, b to c, c to b a to c c to a, none worked.
#24 / Mar 25, 2009 9:49pm
Are you visiting the second site with a www in the URL after you log into the first one?
#25 / Mar 26, 2009 4:26am
I have tried both, with and without.
#26 / Mar 26, 2009 4:47am
_Oli,
Have you tried this combination yet? I added back in the site folder and removed the cookie prefix.
$conf['app_version'] = "167";
$conf['license_number'] = "";
$conf['debug'] = "1";
$conf['install_lock'] = "1";
$conf['db_hostname'] = "localhost";
$conf['db_username'] = "user";
$conf['db_password'] = "password";
$conf['db_name'] = "dbname";
$conf['db_type'] = "mysql";
$conf['db_prefix'] = "exp";
$conf['db_conntype'] = "0";
$conf['system_folder'] = "../../system/";
$conf['cp_url'] = "http://www.site_a.com/system/index.php";
$conf['doc_url'] = "http://expressionengine.com/docs/";
$conf['is_system_on'] = "y";
$conf['allow_extensions'] = "y";
$conf['multiple_sites_enabled'] = "y";
$conf['multi_login_sites'] = "http://www.site_a.com/site/index.php|http://www.site_b.com/index.php";
$conf['cookie_prefix'] = "";#27 / Mar 26, 2009 5:50am
Hi John,
Thank you so much for helping.
Ok, I have tried this again (this was my first config) and it works as far as keeping me logged in from site to site. My original problem is back though.
Is the answer taking site_a out of that “site” folder? This would be a real shame as I would loose all my search engine result, links, we send newsletter from this site so none of them would work anymore…. the list goes on…
Thanks again for your help
#28 / Mar 26, 2009 7:35am
Ok latest testing shows me this.
$conf['multi_login_sites'] = "http://www.site_a.com/index.php|http://www.site_b.com/index.php";With this config
If I login to site_a and I end up being logged into site_a only.
If I login to site_b, I get redirected to site_a. I’m not logged into site_a but I am logged in site_b if I navigate back to it.
$conf['multi_login_sites'] = "http://www.site_a.com/site/index.php|http://www.site_b.com/index.php";With this config (site folder added)
If I login to site_a, site_b’s url is being shown and I end up being logged into both sites.
If I login to site_b, site_a’s url is being shown and I end up being logged into both sites.
I am clearing cache + cookies between each testing
edit>>>
site_a/site/index.php << is my expression index
site_a/index.php << is just an meta refresh pushing people to my main site
I suppose this is part of the problem…
#29 / Mar 26, 2009 5:19pm
It definitely sounds like it. Are you not able to move EE up to the root of the site? Another question, are you removing index.php from your urls?
#30 / Mar 26, 2009 5:29pm
I can move it, I was just hoping there would be another solution… It’s a busy site and pretty big too. Are we sure this is the only way?
I’m not removing index.php but would love to do it. I have read it isn’t really doable when using that “multiple site login” function, is that true?