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.

Logging In as Wrong User

October 28, 2011 12:12am

Subscribe [5]
  • #16 / Oct 31, 2011 12:20am

    Dan Decker

    7338 posts

    Hi brianrivet,

    I’m so sorry that happened! Let’s see if we can get it overridden. Open /system/expressionengine/config/config.php You should find a blank line around line 24 place this code there:

    $config['cookie_domain'] = "";

    That will override the value you have set in the Control Panel. Once you are able to login, you can unset the value in the CP, and then remove this line from confg.php

     

  • #17 / Oct 31, 2011 8:02am

    brianrivet

    48 posts

    Thanks Dan,

    That fixed that issue, so I was able to get back in. Now we just need to resolve the issue of logging in as the wrong user.

    Thanks

    Brian

  • #18 / Nov 01, 2011 10:26am

    brianrivet

    48 posts

    Hi,

    I wanted to check up with you guys and see if you have any ideas about how to resolve this issue. I’ve been looking at it on my end and I’m not having any luck.

    Thanks,

    Brian

  • #19 / Nov 01, 2011 11:19pm

    Kevin Smith

    4784 posts

    I think it’s going to be best at this point to dive in and take a first-hand look, Brian. Be on the lookout for an email from me.

  • #20 / Nov 01, 2011 11:23pm

    brianrivet

    48 posts

    Hi Kevin,

    I just sent it over to you. Thanks for your help!

    Brian

  • #21 / Nov 02, 2011 12:20am

    Kevin Smith

    4784 posts

    Hey Brian,

    Figured it out: The problem wasn’t that EE was actually logging in other users as the user with member ID #1. Since it looks like you’re wrapping your pages fully in Channel Entries tags, the {username} variable was displaying the entry’s author username, not the logged-in member’s username. In situations like this (where EE will parse member variables based on the tag they reside within) be sure to use the alternative syntax for member variables.

    I changed {username} to {logged_in_username} and it now shows the properly logged-in user.

    Can you confirm that this takes care of things for you?

  • #22 / Nov 02, 2011 12:34am

    brianrivet

    48 posts

    Hey Kevin,

    That looks like that was it. Thanks so much for your help. I completely didn’t see it.

    Thanks again for your help!

    Brian

  • #23 / Nov 03, 2011 5:29pm

    Robin Sowell

    13255 posts

    Holy cow, that was a puzzler.  Glad Kevin got you squared away!  Sometimes it just takes a fresh pair of eyeballs.

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

ExpressionEngine News!

#eecms, #events, #releases