Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cookie validation failure

New Here ,
Sep 10, 2009 Sep 10, 2009

We have a CF script that fails to authenticate cookie. Checked in the browser that the cookie is trying to valid and is present.

Any idea what's missing?

TIA.

Code...

<cfinclude template="2APP_Constants.cfm">

<cfoutput>
<cfif NOT(ListContainsNoCase(cgi.http_cookie, "APP2Validation","; "))>
  <html>
    <head>
      <script language="JavaScript">
        <!--
        setTimeout("top.location.href = '#strHome#'",10000);
        //-->
      </script>
    </head>
    <body>
      <div align="center">
        <h1>ERROR: Session could not be authenticated.</h1>
        <p />You will be redirected to the home page in 10 seconds.  <a href="#strHome#">Click here to redirect immediately.</a>
      </div>
    </body>
  </html>
  <cfabort>
</cfif>
</cfoutput>

451
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 10, 2009 Sep 10, 2009
LATEST
<cfif NOT(ListContainsNoCase(cgi.http_cookie, "APP2Validation","; "))>

If the name of the cookie is APP2Validation, then you should instead do:

<cfif NOT isDefined("cookie.APP2Validation")>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources