Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
<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")>