I have page where the content depends on whether you are logged in or not. This is the tag that I used to check
{if logged_out}
...
{if:else}
...
{/if}
However, even if I am logged out, I always get to the second part which is meant for logged in users.
I have cleared the cache from EE and the cookies from my browser. But it did not help.
Which parts of EE should I be looking for to solve this problem?
Some more information
I am using the url below to log out
{redirect="?ACT=16&return=/sign-out/"}
I am using Safecracker Registration. All the kinks with upgrading to 2.7.1 have been worked out.
UPDATE:
I outputted some variables and I got this
logged_in_member_id: 1
logged_in_group_id: 1
logged_in_group_description:
logged_in_username:
logged_in_screen_name:
logged_in_email:
Another UPDATE:
I have Template A and Template B.
Template A embeds Template B.
I added code to show logged_in status in both Templates
<div>
{if logged_in}
LOGGED IN
{/if}
{if logged_out}
LOGGED OUT
{/if}
</div>
The problem is that in Template A, logged_in is FALSE
but in Template B, logged_in is TRUE
This is weird. So {logged_in} can be changed?