Jim,

Hard to help here without some additional information. By "session" do you mean 
you are using 4D's automatic session management? What version?

You might also show a bit of your code. So you are sending your first response 
with a "Set-Cookie" header and the *next* request from the browser does not 
have the value in the "Cookie" header?

John DeSoi, Ph.D.


> On Jun 4, 2018, at 6:15 PM, Jim Labos - infobase via 4D_Tech 
> <[email protected]> wrote:
> 
> However I would like to detect first if the browser connecting has Cookies
> enabled or not. 4D does not have a method for that. Therefore I create a
> Cookie (ie: "EXISTS" ) with a value (ie: "YES" ) and then immediately try
> and read back the Cookie. If I get back a blank the assumption is Cookies
> are disabled and I can deal with a response.
> 
> However when trying to read a cookie that has just been created it always
> comes back blank. I think what is happening is that the session is not
> finished and therefore the Cookie is not actually created until the session
> is over. If I check the cookie's existence after session is over it does
> exist.
> 
> So 'am I correct in assuming I cannot read a Cookie until web session is
> over?

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to