Hello.
I just updated my website to version 2.2.1 and I’m having some trouble with my logged_in and logged_out content. I didn’t have any trouble with this in 2.1.3.
The problems are visible in several ways on my website. First, after using the login form, the simple conditional in the header doesn’t recognize the newly logged in member. Here is the code:
{if logged_in}
Welcome, {screen_name}! View your <a href="https://www.faithbuilders.com/cart/account">account</a> or <a href="http://{path=LOGOUT}">logout</a>.
<span class="view_cart_text">
<a href="/cart">View cart ({exp:cartthrob:total_items_count}) {exp:cartthrob:cart_subtotal}</a> or <a href="https://www.faithbuilders.com/cart/checkout">checkout</a>.</span>
{/if}
{if logged_out}
Hello, Guest! Please <a href="https://www.faithbuilders.com/member/register">register</a> or
<a href="https://www.faithbuilders.com/cart/login">login</a>.
<span class="view_cart_text">
<a href="/cart">View cart ({exp:cartthrob:total_items_count}) {exp:cartthrob:cart_subtotal}</a> or <a href="https://www.faithbuilders.com/cart/checkout">checkout</a>.</span>
{/if}After logging in, the “Hello, Guest! Please register or login” text still appears.
Also, I have an “account” page for customers where they can view their receipts and purchased downloads, and change their account password. On this page, I’m using {if logged_out} to display a login form, and {if logged_in} to display the links to the receipts and downloads.
After logging in and clicking the “account” link, I see the “Account Login” title (which is part of the logged_out conditional) and a series of letters and numbers: M20o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr, which also appears at the top of the page (above the header). I’ve never seen this happen before.
To the best of my knowledge I haven’t changed these templates since upgrading. They used to work fine.
Any advice on how to remedy this issue is greatly appreciated.
~Sarah