cfcookie

ColdFusion 10 CFCookie not honoring domain attribute

瘦欲@ 提交于 2019-12-12 08:57:26
问题 I have an Application.cfc with the following settings: <cfset THIS.Name = "Test01" /> <cfset THIS.ApplicationTimeout = CreateTimeSpan(1,0,0,0) /> <cfset THIS.sessionTimeout = CreateTimeSpan(1,0,0,0) /> <cfset THIS.clientManagement = false /> <cfset THIS.SessionManagement = true /> <cfset THIS.SetClientCookies = false /> <cfset THIS.setDomainCookies = false /> And I attempted to send the following cookies: <cfcookie name="CFID" value="#session.CFID#" domain=".test01.domain.net" path="/"

ColdFusion 10 CFCookie not honoring domain attribute

只愿长相守 提交于 2019-12-04 11:38:38
I have an Application.cfc with the following settings: <cfset THIS.Name = "Test01" /> <cfset THIS.ApplicationTimeout = CreateTimeSpan(1,0,0,0) /> <cfset THIS.sessionTimeout = CreateTimeSpan(1,0,0,0) /> <cfset THIS.clientManagement = false /> <cfset THIS.SessionManagement = true /> <cfset THIS.SetClientCookies = false /> <cfset THIS.setDomainCookies = false /> And I attempted to send the following cookies: <cfcookie name="CFID" value="#session.CFID#" domain=".test01.domain.net" path="/" expires="never"> <cfcookie name="CFTOKEN" value="#session.CFTOKEN#" domain=".test01.domain.net" path="/"

why doesn't cfcookie allow setting domain= to a subdomain for CFID/CFTOKEN?

五迷三道 提交于 2019-12-01 05:29:31
<cfcookie name="CFID" value="#session.cfid#" domain=".demo.labs.dev"> yields: Set-Cookie: CFID=4215; Domain=.labs.dev; Expires=Sat, 04-Jul-2043 01:43:49 GMT; Path=/; HttpOnly But if I use <cfheader> directly: <cfheader name="Set-Cookie" value="CFID=4212; Domain=.demo.labs.dev; Expires=Sat, 04-Jul-2043 01:37:03 GMT; Path=/; HttpOnly"> yields: Set-Cookie: CFID=4212; Domain=.demo.labs.dev; Expires=Sat, 04-Jul-2043 01:37:03 GMT; Path=/; HttpOnly And that's really what I want. Why does <cfcookie> behave this way? Current workaround would be using <cfheader> instead. Have you reproduced this error

why doesn't cfcookie allow setting domain= to a subdomain for CFID/CFTOKEN?

一笑奈何 提交于 2019-12-01 03:33:37
问题 <cfcookie name="CFID" value="#session.cfid#" domain=".demo.labs.dev"> yields: Set-Cookie: CFID=4215; Domain=.labs.dev; Expires=Sat, 04-Jul-2043 01:43:49 GMT; Path=/; HttpOnly But if I use <cfheader> directly: <cfheader name="Set-Cookie" value="CFID=4212; Domain=.demo.labs.dev; Expires=Sat, 04-Jul-2043 01:37:03 GMT; Path=/; HttpOnly"> yields: Set-Cookie: CFID=4212; Domain=.demo.labs.dev; Expires=Sat, 04-Jul-2043 01:37:03 GMT; Path=/; HttpOnly And that's really what I want. Why does <cfcookie>