steveduke
05/20/2022, 5:40 PMbdw429s
05/20/2022, 5:50 PMbdw429s
05/20/2022, 5:51 PMbdw429s
05/20/2022, 5:51 PMbdw429s
05/20/2022, 5:53 PMsteveduke
05/20/2022, 5:58 PMsteveduke
05/20/2022, 6:00 PMbdw429s
05/20/2022, 9:21 PMsteveduke
05/20/2022, 10:04 PMzackster
05/23/2022, 12:17 PMsteveduke
05/24/2022, 4:10 PMsteveduke
05/24/2022, 6:01 PMbdw429s
05/24/2022, 6:07 PMsteveduke
05/24/2022, 7:45 PMbdw429s
05/24/2022, 9:13 PMSecure
attribute in the cookie?bdw429s
05/24/2022, 9:13 PMsamesite
is equal to None
, the cookie's `secure" attribute must also be set or the cookie will be blocked.bdw429s
05/24/2022, 9:14 PMbdw429s
05/24/2022, 9:14 PMcookie
scope?bdw429s
05/24/2022, 9:28 PMsamesite
set to None
is showing up in the cookie scopebdw429s
05/24/2022, 9:28 PMsteveduke
05/24/2022, 10:01 PM<cfheader name="Set-Cookie" value="testMyCookie=abcd1234;Path=/;Domain=.mysite.com;SECURE;HttpOnly;SameSite=None;Expires=#dateTimeFormat(dateAdd('d',90,now()),"ddd, dd-mmm-yyyy HH:nn:ss","UTC")# UTC"/>
Running the code from an older version of Lucee (5.3.9.139) we see the SameSite=None set in the cookie:
testMyCookie=abcd1234;Domain=.<http://mysite.com;SECURE;HttpOnly;SameSite=None;Expires=Mon|mysite.com;SECURE;HttpOnly;SameSite=None;Expires=Mon>, 22-Aug-2022 17:38:05 UTC;
running the same code on 5.3.9.140 we see :
testMyCookie=abcd1234;Path=/;Domain=.<http://models.com;Expires=Mon|models.com;Expires=Mon>, 22-Aug-2022 17:35:33 UTC;Secure;HttpOnly
The auth dev has an idea why, and will pick this up again tomorrow.bdw429s
05/24/2022, 10:07 PMbdw429s
05/24/2022, 10:07 PMbdw429s
05/24/2022, 10:10 PMsteveduke
05/24/2022, 10:10 PMbdw429s
05/24/2022, 10:11 PMbdw429s
05/24/2022, 10:11 PMbdw429s
05/24/2022, 10:11 PMsteveduke
05/24/2022, 10:12 PMbdw429s
05/24/2022, 10:12 PMbdw429s
05/24/2022, 10:13 PMbdw429s
05/24/2022, 10:15 PMsteveduke
05/24/2022, 10:15 PMbdw429s
05/24/2022, 10:16 PMsteveduke
05/24/2022, 10:16 PMbdw429s
05/24/2022, 10:16 PMIn the response headers I see no set-cookie for this cookieThis will only happen on the specific page that sets the cookie. Can you confirm because I defo see a set cookie in my HTTP response when I test that same cfheader code
bdw429s
05/24/2022, 10:17 PMIn the request headers I see the cookie being requested from the browserI don't quite follow this. Cookies aren't "requested from" the browser. The browser just sends them to the server in the HTTP request headers.
steveduke
05/24/2022, 10:18 PMbdw429s
05/24/2022, 10:18 PMbdw429s
05/24/2022, 10:23 PM<cfheader name="Set-Cookie" value="testMyCookie=abcd1234;Path=/;Domain=.fakedomain.com;SECURE;HttpOnly;SameSite=None;Expires=#dateTimeFormat(dateAdd('d',90,now()),"ddd, dd-mmm-yyyy HH:nn:ss","UTC")# UTC"/>
When I visit the page, I see this response header
set-cookie: testMyCookie=abcd1234;Path=/;Domain=.<http://fakedomain.com;SECURE;HttpOnly;SameSite=None;Expires=Mon|fakedomain.com;SECURE;HttpOnly;SameSite=None;Expires=Mon>, 22-Aug-2022 22:21:58 UTC
leading to this cookie showing in the application tabsteveduke
05/24/2022, 10:23 PMbdw429s
05/24/2022, 10:24 PMcookie: testMyCookie=abcd1234
and the Luce cookie
scope contains the valuebdw429s
05/24/2022, 10:24 PMbdw429s
05/24/2022, 10:24 PMbdw429s
05/24/2022, 10:25 PMsteveduke
05/24/2022, 10:25 PMbdw429s
05/24/2022, 10:25 PMCookie
header is sent from the browser to the server but the cookie itself is missing from the CF cookie
scope?bdw429s
05/24/2022, 10:27 PMset-cookie
header coming from the server to the browser is missing information?bdw429s
05/24/2022, 10:28 PMsteveduke
05/24/2022, 10:36 PMsteveduke
05/24/2022, 10:38 PMbdw429s
05/24/2022, 10:39 PMbdw429s
05/24/2022, 10:39 PMbdw429s
05/24/2022, 10:39 PMsteveduke
05/24/2022, 10:40 PMbdw429s
05/24/2022, 10:40 PMset-cookie
HTTP reponse headers above, but I'm a little confused because later you said "_In the response headers I see no set-cookie for this cookie_" so I'm not clear what's happening.bdw429s
05/24/2022, 10:40 PMbdw429s
05/24/2022, 10:41 PMsteveduke
05/24/2022, 10:41 PMbdw429s
05/24/2022, 10:41 PMbdw429s
05/24/2022, 10:42 PMbdw429s
05/24/2022, 10:42 PMbdw429s
05/24/2022, 10:43 PMbdw429s
05/24/2022, 10:46 PMsteveduke
05/24/2022, 10:46 PMbdw429s
05/24/2022, 10:46 PMdomain
of my test is .<http://fakedomain.com|fakedomain.com>
and the browser sends the cookie to the server for both <http://foo.fakedomain.com|foo.fakedomain.com>
and <http://bar.fakedomain.com|bar.fakedomain.com>
bdw429s
05/24/2022, 10:46 PMbdw429s
05/24/2022, 10:47 PMbdw429s
05/24/2022, 10:47 PMsteveduke
05/24/2022, 10:48 PMbdw429s
05/24/2022, 10:48 PMsteveduke
05/24/2022, 10:49 PMbdw429s
05/24/2022, 10:49 PMsteveduke
05/24/2022, 10:52 PMdomain
of my test is .<http://fakedomain.com|fakedomain.com>
and the browser sends the cookie to the server for both <http://foo.fakedomain.com|foo.fakedomain.com>
and <http://bar.fakedomain.com|bar.fakedomain.com>
"
For us that second domain would be running on Lucee build 5.3.9.133bdw429s
05/24/2022, 10:56 PMsteveduke
05/24/2022, 10:56 PMbdw429s
05/24/2022, 10:58 PMwe would set the cookie for the second domainThis is also confusing as your example above set a "domain" cookie, which applies to all subdomains.
Domain=.<http://mysite.com|mysite.com>;
which is it?bdw429s
05/24/2022, 10:58 PMand not see he correct set-cookie response header coming back from the server to the browserExplain-- no header at all, or a different header than you expect? And in what way was it incorrect?
bdw429s
05/24/2022, 11:03 PMwhen the cookie is set in sub1.d.com, and then we browser to sub2.d.com, and cookie is not returned in set-cookie.If the cookie is set in code running in the sub1 server, then ONLY the HTTP response from the sub1 server would contain the
set-cookie
. No requests to sub2 would include a set-cookie
header in their response unless they also ran CFML code to set a cookie. If you're only running the cfheader code on sub1, then you should not expect to see any sort of set-cookie
response header from sub2.steveduke
05/24/2022, 11:03 PMsteveduke
05/24/2022, 11:04 PMbdw429s
05/24/2022, 11:04 PMthere is no set-cookie in the other sub domain response headersWhy would you expect to see one? That's not how cookies work
bdw429s
05/24/2022, 11:05 PMcookie
request header on every request.bdw429s
05/24/2022, 11:06 PMset-cookie
HTTP response header come back from the server when you've explicitly set a new cookie on that request.
• you'll see a cookie
HTTP request header on every subsequent request containing all cookies the browser has for that domain.bdw429s
05/24/2022, 11:07 PMsteveduke
05/24/2022, 11:10 PMsteveduke
05/24/2022, 11:10 PMbdw429s
05/24/2022, 11:11 PMso it's most likely being set on every request.I wouldn't think so. I mean, it's possible, but that would be a very curious and odd design.
bdw429s
05/24/2022, 11:11 PMbdw429s
05/24/2022, 11:11 PMsteveduke
05/27/2022, 3:43 PMzackster
05/27/2022, 3:51 PMzackster
05/27/2022, 3:53 PMzackster
05/27/2022, 3:55 PMzackster
05/27/2022, 4:35 PMbdw429s
05/27/2022, 5:21 PMbdw429s
05/27/2022, 5:23 PMsteveduke
05/27/2022, 5:35 PMbdw429s
05/27/2022, 5:39 PMbdw429s
05/27/2022, 5:39 PMbdw429s
05/27/2022, 5:40 PMsteveduke
05/27/2022, 5:43 PMbdw429s
05/27/2022, 5:44 PMsteveduke
05/27/2022, 5:44 PMsteveduke
05/27/2022, 5:46 PMbdw429s
05/27/2022, 5:46 PMsteveduke
05/27/2022, 5:48 PMsteveduke
05/27/2022, 5:48 PM