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.

site members can't login (issue with cookies and sessions?)

June 29, 2010 1:44pm

Subscribe [4]
  • #1 / Jun 29, 2010 1:44pm

    gguschke

    6 posts

    I am working on a site that has several registered members. If someone from any of the member groups (including Super Admin) is logged in at a given time, no one else can log in. This is the error:

    The form you submitted contained the following errors

      * Someone is already logged in using this account.

    I temporarily got around this problem by changing the security and sessions preferences. I changed “Allow multiple log-ins from a single account?” to Yes, and “User Session Type” to “Cookies and Session ID.”

    This is not a good fix, though, because now the session ID is showing up in the site links. I need this: http://site.com/index.php/S=330b12etcetcetc/templategroup/template

    to appear like this: http://site.com/index.php/templategroup/template


    To summarize:

    -Without changing the user session type, why won’t EE allow more than one user to log in at a given time, even though they have different accounts?

    -If I need to keep the user session type set to “Cookies and Session ID” in order for login to work, is there a way to keep the session ID from showing in links?

    Thank you.

  • #2 / Jun 29, 2010 5:35pm

    Ingmar

    29245 posts

    * Someone is already logged in using this account.

    That means that you are attempting to login using the same account more than once. When you go to http://example.com/index.php/member/login what do you get?

    Without changing the user session type, why won’t EE allow more than one user to log in at a given time, even though they have different accounts?

    Are you trying this from the same computer? You can’t be logged in more than once from one computer.

  • #3 / Jun 29, 2010 6:12pm

    gguschke

    6 posts

    Thank you for the reply.

    We saw the error happen whenever I was logged in and my work partner tried to log in to the site using her own username and password, which is from a different member group. My partner and I work in different locations.

    We later tested the login from other computers, using unique member accounts, and the error kept happening.

  • #4 / Jun 29, 2010 6:38pm

    gguschke

    6 posts

    UPDATE: I should have remembered to clear EE’s cached data.

    I switched back to “Cookies Only” to prevent Session IDs from showing in the links, and selected “No” for “Allow multiple log-ins from a single account.” Then I cleared EE’s cache, and three different computers are now able to get in with unique usernames.

    I apologize for taking your time on such a simple issue!

  • #5 / Jun 29, 2010 7:52pm

    Brandon Jones

    5500 posts

    Glad Ingmar helped! Don’t hesitate with further questions.

  • #6 / Jun 29, 2010 7:52pm

    Brandon Jones

    5500 posts

    :cheese:

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

ExpressionEngine News!

#eecms, #events, #releases