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.

cookie and session issues with control panel

May 17, 2012 5:07pm

Subscribe [1]
  • #1 / May 17, 2012 5:07pm

    RicochetPartners

    16 posts

    a brief description of our setup. single server, two EE installations, one of them multi-site. we seem to have chronic cookie & session issues as it relates to accessing the control panel.

    should I be able to retain simultaneous logins in my browser to two EE installations on the same server?

    here’s a specific problem area we’re seeing (one of several).

    - if not logged in, user gets re-directed to a standard login page. on successful login user is forwarded to site home page
    - admin users see Edit links interspersed with site content, allowing for direct access to channel entries. like so:

    <a href="/admin.php?D=cp&C=content_publish&M=entry_form&channel_id={channel_id}&entry_id={entry_id}" target="_blank" rel="noopener">Edit</a>

    - initial usage of these Edit links evokes the standard admin login, despite already having logged in
    - subsequent clicks on Edit links function as intended.

    I’m guessing perhaps there’s a session issue with the above method? can we avoid requiring the user to login twice?

  • #2 / May 18, 2012 2:54pm

    Dan Decker

    7338 posts

    Hi RicochetPartners,

    Sure thing!

    When you login to the front end, you are setting a cookie. Logging in to the Control Panel sets a cookie and a session value by default. The session value is missing when you click your edit link, so you aren’t technically logged into the Control Panel.

    If you login to the Control Panel first, you will be seen as logged in by the front because the cookie is valid.

    You can workaround this by setting the Control Panel to use Cookies Only in the Control Panel. Admin->Security and Privacy->Security and Sessions, set the drop down to “Cookies Only”.

    I look forward to your reply!

    Cheers,

  • #3 / Jun 08, 2012 3:46pm

    RicochetPartners

    16 posts

    hey Dan, following up on this. initial results look good! after changing the control panel access to cookie only, we’re now able to login a single time and not repeat the login when jumping into the admin. thanks!

  • #4 / Jun 12, 2012 12:58pm

    Dan Decker

    7338 posts

    Hi RicochetPartners,

    Fantastic news!

    If you need anything else, please just let me know.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases