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.

EE doesn't recognizes, if someone is logged in in the CP

February 01, 2011 1:53pm

Subscribe [2]
  • #1 / Feb 01, 2011 1:53pm

    thomasaull

    14 posts

    I’ve a small but anoying problem:

    My EE-Installation doesn’t recognizes if I’m logged in in the CP or not. I have created a small test-template with the following code:

    <h1>My Group ID is {group_id} and 
    {if logged_in}
    
     I'm logged in
    {/if}
    
    {if logged_out}
    
    I'm logged out
    
    {/if}</h1>

    Although I’m logged in in the CP, this template outputs:

    “My Group ID is 3 and I’m logged out”

    Any chances to get that working?

  • #2 / Feb 02, 2011 9:00am

    Sue Crocker

    26054 posts

    Hi, thomasaull.

    Make sure you are using either a cookie domain, or that you’re logged into the back end and the front end with either the www or non-www version of your site.

    For instance:

    http://example.com/system and http://www.example.com are different.

    See: HowTo Set a Cookie Domain

    Does that help?

  • #3 / Feb 02, 2011 10:59am

    thomasaull

    14 posts

    Many thanks Sue for the ultra-fast help. That was the point, it works perfectly now.

  • #4 / Feb 02, 2011 5:20pm

    Sue Crocker

    26054 posts

    Glad things are working again.. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases