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.

Cannot logout on frontend

July 13, 2010 8:26pm

Subscribe [2]
  • #1 / Jul 13, 2010 8:26pm

    Manoj Thomas

    185 posts

    I think my problem might be related to this thread, but it’s a little over my head.

    I’m able to log in and out successfully in the backend of EE, but my {path=LOGOUT} tag that produces a logout link on the frontend of my site isn’t working. The logged-in member on the site clicks the link and goes through the “You are now logged out” dialog, but they still remain logged in and still have access to the protected content.

    I tested on win7/firefox and win7/chrome with the same issue. win7/ie8 did NOT have the issue - users can log out successfully.

    Any suggestions on what’s causing this?

    I’m running 1.6.9 build 20100430.

    Thanks!
    Manoj

  • #2 / Jul 14, 2010 6:35pm

    Brandon Jones

    5500 posts

    Hi Manoj, a few questions:

    1. Under Admin ›  System Preferences ›  Security and Session Preferences, what is set for User Session Type?
    2. Under Admin ›  System Preferences ›  Cookie Settings, what is set for Cookie Domain?
    3. Are you removing index.php from your URLs?

  • #3 / Jul 15, 2010 6:26pm

    Manoj Thomas

    185 posts

    Hi Brandon,

    1. User Session Type: Cookies only
    2. Cookie Settings: All these fields are blank…
    3. Yep, I’m removing index.php. I tried putting it back in, but still the same problem.

    Also, I’m using MSM for one additional site - those settings above are for my default_site. The logout link on the frontend is in the header template shared by both sites.

    Thanks,
    Manoj

  • #4 / Jul 15, 2010 8:34pm

    Lisa Wess

    20502 posts

    Hi, Manoj -

    Please set the cookie domain in each of your MSM sites.  It should be in the form of .example.com—do not forget that leading period.

    Does that help?

  • #5 / Jul 16, 2010 2:20am

    Manoj Thomas

    185 posts

    Hi Lisa, I’m working from a dev URL and the secondary site is currently a sub-directory:

    default_site: http://username.www40.a2hosting.com
    secondary_site: http://username.www40.a2hosting.com/sub

    I set the cookie domain to:
    .username.www40.a2hosting.com and
    .username.www40.a2hosting.com/sub

    but still the same error. Did I set those correctly? =)

  • #6 / Jul 16, 2010 4:24pm

    Brandon Jones

    5500 posts

    I think that should be OK, but to clarify, you’re unable to logout on the front end of either site, correct?

    Try logging into both sites and then hitting this link on each:

    Primary: http://username.www40.a2hosting.com/index.php?ACT=xx
    Secondary: http://username.www40.a2hosting.com/sub/index.php?ACT=xx

    Do those log you out of the respective sites?

  • #7 / Jul 16, 2010 4:27pm

    Brandon Jones

    5500 posts

    Edit: Your action id’s could be different, so look at your exp_actions table, and find the action ID for the method ‘member_logout’ and use that number in place of xx in the URLs above.

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

ExpressionEngine News!

#eecms, #events, #releases