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.

Login Problem, possible cookie problems

March 30, 2011 4:50pm

Subscribe [5]
  • #1 / Mar 30, 2011 4:50pm

    50offstores

    3 posts

    I’ve been having problems logging in to the control panel. I can log in with Chrome (after I enable cookies in the config file), but not with any other browser. Furthermore, I can’t log out with Chrome either. The error that I get on any other browser looks like it’s the same as the one described here: http://ellislab.com/forums/viewthread/164204/ Basically, the login page just refreshes every time I enter and submit my credentials.

    This problem only appeared after we tried making another site (after buying the multiple site licence), but I’m not sure how a new site would effect the login page on the original site.

    It sounds like a cookie isn’t being set properly when I hit the login button, and it isn’t expiring the cookie correctly when I hit “logout.”

    Any ideas on a fix?

    P.S. already tried switching to “s” and “cs,” and neither of those config settings helped.

  • #2 / Mar 31, 2011 7:14am

    Greg Salt

    3988 posts

    Hi 50offstores,

    Welcome to the forums!

    Have you set a cookie domain in your config file? If so, try removing that for the time being and clear your browser caches. When you first enabled the Multiple Site Manager were you able to switch sites properly? In your webroot index.php file did you enable and complete the MSM specific $assign_to_config variables:

    Example Settings

    /**
     * If you are running the Multiple Site Manager, uncomment and assign the following variables 
     * See <a href="http://ellislab.com/expressionengine/user-guide/cp/sites/domainsetup.html">http://ellislab.com/expressionengine/user-guide/cp/sites/domainsetup.html</a>
     */
        $assign_to_config['site_name'] = 'default_site';
        $assign_to_config['cp_url'] = 'http://ee213.intranet/system/';
        $assign_to_config['site_url'] = 'http://ee213.intranet/';

    In the example above I would be logging into my MSM install at http://ee213.intranet/system/ and not at any other MSM domains.

    Cheers

    Greg

  • #3 / Mar 31, 2011 7:18am

    Sue Crocker

    26054 posts

    Welcome to the ExpressionEngine forums, 50offstores.

    Since you’re new to the EE forums, have you seen EEWiki:// How to Post a Support Request?

    Which version of Chrome, and with which operating system? Also, can you tell us which version/build of EE2.x you’re using? See EEWiki:// HowTo Determine My EE Version

    You want to stick with cookies only.

    What lines did you add to your index.php for your second site?

    Did you set:

    $assign_to_config['cp_url']

    You may need to do so for both site’s index.php file.

  • #4 / Mar 31, 2011 11:01am

    50offstores

    3 posts

    Hi Greg and Sue,

    Thanks for the prompt response. We’re using the following:

    EE 2 Multiple Site Manager Commercial License
    Current Version: 2.x - Build: 20101220

    ExpressionEngine 2.x Commercial License
    Current Version: 2.1.3 - Build: 20101220


    When I created the new site, I was able to switch between sites with no problem. As far as set up goes, I followed these steps: http://ellislab.com/expressionengine/user-guide/cp/sites/index.html

    I have since removed the second site but still cannot login, it just keeps refreshing the login page.

    I tried adding the: $assign_to_config[‘cp_url’] to the main sites config file but that didn’t do anything either.

    I’m not really sure what’s going on. Are there any other options I can try before I just reinstall everything?

    Thanks!

    John

  • #5 / Apr 01, 2011 12:57pm

    50offstores

    3 posts

    Ok… so when I disable MSM I am able to login with no problems but as soon as I activate it again, I can’t login. I reinstalled the MSM files but that didn’t do anything.

  • #6 / Apr 03, 2011 5:12pm

    Greg Salt

    3988 posts

    Hi John,

    Please make sure that you have cleared your browser cache (including cookies for the domains) and also the EE caches. Without logging in you can do this with FTP by going to system/expressionengine/cache and removing everything apart from the index.html and any .htaccess file. Is this on a public server or is it a local install?

    Cheers

    Greg

  • #7 / Apr 04, 2011 3:05pm

    50offstores

    3 posts

    Hi Greg,

    I cleared out the browser and EE cache and still get the same results.

    I am able to log back into EE when MSM is disabled. Once I’m logged in, I can activate MSM again and navigate throughout the backend without issue. However, when I create a new site, I am unable to toggle back and forth between them. This wasn’t a problem before the login issues.

    I’ve tried all the suggested fixes by adding the different config variables but nothing seems to work.

    Any other ideas I can try?


    Thanks!

  • #8 / Apr 04, 2011 6:25pm

    Sue Crocker

    26054 posts

    Hi, 50offstores.

    Can you post your settings in your index.php file for the secondary site and the primary site?

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

ExpressionEngine News!

#eecms, #events, #releases