1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Check if xf_session_admin is Set via Templates?

Discussion in 'XenForo Questions and Support' started by James, Mar 31, 2011.

  1. James

    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?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Use this variable:

    For example:

    <xen:if is="{$_COOKIE.xf_session_admin}">
    James likes this.
  3. James

    James Well-Known Member

    Thanks Jake - completely forgot superglobals worked.

Share This Page