Check if xf_session_admin is Set via Templates?

James

Well-known member
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

XenForo moderator
Staff member
Use this variable:

Code:
{$_COOKIE.xf_session_admin}
For example:

Code:
<xen:if is="{$_COOKIE.xf_session_admin}">

</xen:if>
 
Top