J James Well-known member Mar 31, 2011 #1 Is it possible to check if the xf_session_admin cookie is set via templates, using raw XF code? Or will I have to create a custom checkCookie() JS function?
Is it possible to check if the xf_session_admin cookie is set via templates, using raw XF code? Or will I have to create a custom checkCookie() JS function?
Jake Bunce Well-known member Mar 31, 2011 #2 Use this variable: Code: {$_COOKIE.xf_session_admin} For example: Code: <xen:if is="{$_COOKIE.xf_session_admin}"> </xen:if> Upvote 0 Downvote
Use this variable: Code: {$_COOKIE.xf_session_admin} For example: Code: <xen:if is="{$_COOKIE.xf_session_admin}"> </xen:if>
J James Well-known member Mar 31, 2011 #3 Thanks Jake - completely forgot superglobals worked. Upvote 0 Downvote