Forum Discussion

RobertT's avatar
11 years ago

Page Initialisation - Cookie Detection

We're looking at implementing a page initialisation script in our environment which detects users who happen to have our SSO cookie present but not the lithium cookie used to indicate the user is log...
  • nathan's avatar
    nathan
    11 years ago

    What error do you get?

     

    You could also try getting the cookie via http.request.cookies:

    <#assign has_sso_cookie = http.request.cookies.name.get("mainsiteSSO") />
    
    <#if user.anonymous && has_sso_cookie?? >
    ${http.response.setRedirectUrl(webUi.getUserLoginPageUrl)}
    </#if>