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.

Correcting user error on cookie domain?

July 02, 2007 5:43pm

Subscribe [3]
  • #1 / Jul 02, 2007 5:43pm

    c.emerson

    36 posts

    I goofed up the cookie domain on my test site.  :gulp: I logged out and can’t log in…

    Is there somewhere I can go without being on the site to make the correction? Please…

    I looked at the Maintain DB Tables dialog in my live site to try to find the setting and don’t see it in the config.php so am guessing its moved into a table. Thank you!

  • #2 / Jul 02, 2007 9:01pm

    Sue Crocker

    26054 posts

    c.emerson, you’re going to need to manually make that change in an exp_sites row in the database. Make a backup of that table before using something like PHPMyAdmin to make the change.

  • #3 / Jul 03, 2007 1:56am

    Lisa Wess

    20502 posts

    Hey, C—

    You can still use the config.php variables, they trump what is in the database.  You should be able to just append:

    $conf['cookie_domain'] = "";

    to the end of the conf list config.php and once again be able to login.

    I hope that helps.  =)

  • #4 / Jul 03, 2007 11:13am

    c.emerson

    36 posts

    Thanks Lisa & Sue - I was a little intimidated to change the array in the sites table… Luckily I didn’t need to. I can get into my dev site now. Thanks! -C

  • #5 / Jul 03, 2007 11:48am

    Derek Allard

    3168 posts

    After you get it fixed up, you might want to go back in and remove that line from config so that everything is back to “default” settings for you.

  • #6 / Jul 03, 2007 12:24pm

    Lisa Wess

    20502 posts

    Yes, just make sure you submit that change in the CP first so it writes to the database. Definitely no need to keep the temporary override in once it’s fixed up, though. =)

    Believe me - I was intimidated by the array, too - I asked about it and found out that neither of us had to worry about it. =)

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

ExpressionEngine News!

#eecms, #events, #releases