Re: How does one detect that Cookies are disabled?

2018-06-09 Thread Jim Labos - infobase via 4D_Tech
Hi John, I just saw this and will check it out. I knew there are Javascripts to check for Cookies but was resisting going that route. I will give it a try. Thanks to you and Danny Beaubien. Cheers - Jim Labos - infobase -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html

Re: How does one detect that Cookies are disabled?

2018-06-06 Thread JOHN BAUGHMAN via 4D_Tech
Jim, Dani Beaubien posted a link to a StachExchange thread that included the following javascript… if (navigator.cookieEnabled) {document.write("Cookies Enabled"); } else {documentwrite("Oops Cookies Not Enabled"); } I tried navigator.cookieEnabled in my test Xojo web app

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread Dani Beaubien via 4D_Tech
Hi John, found this on Stack Overflow. https://stackoverflow.com/questions/4603289/how-to-detect-that-javascript-and-or-cookies-are-disabled This might be what you are looking for. Dani Beaubien > On Jun 5, 2018, at 9:17 PM, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread Jim Labos - infobase via 4D_Tech
Thanks to all that replied. I learned a lot here. It forced me to understand the process and sequence of events that goes into creating, reading and deleting Cookies. Cheers - Jim Labos - infobase -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread JOHN BAUGHMAN via 4D_Tech
First of in my testing I am not involving 4D at all. I was simply using Xojo to test what you said in your post. After a bit more testing, I realize now that I misunderstood your post entirely. > I don't know anything about Xojo, but from the code you posted all it seems > to do is set a

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread John DeSoi via 4D_Tech
I don't know anything about Xojo, but from the code you posted all it seems to do is set a value on the server and immediately read it back. There is no way for the browser to have it yet. The browser only sets a local cookie from a HTTP response containing a "Set-Cookie" header. If cookies are

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread Jim Labos - infobase via 4D_Tech
Thanks John. This was my finding as well although I was not using Xojo (if Xojo code is running from within the HTML form than if it programmed to send message to server you may be able to detect it). Essentially the browser does not see anything until 4D ends the code. I have not checked if it

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread JOHN BAUGHMAN via 4D_Tech
John DeSol just pointed out that my idea would not work.. I just did some testing to see what John was talking about. Using Firefox and Xojo I ran the following test with cookies enabled… session.Cookies.Set("testing","test") if Session.Cookies.Value("testing") = "test" then MsgBox "Cookies

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread Jim Labos - infobase via 4D_Tech
Thanks John. That was my thought too but I thought maybe someone had some other "magic" trick. It's clear now there is none in this case. It's cumbersome but it will need to be processed as you stated. Since it's not a single call I can be checking if the Cookie was created on first hit and

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread John DeSoi via 4D_Tech
> On Jun 5, 2018, at 12:28 PM, Jim Labos - infobase via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I think that it's a question of the Browser not actually creating the Cookie > until 4D ends the connection/method. If one traces the browser's actions one > only sees the Cookie existing only

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread JOHN BAUGHMAN via 4D_Tech
Not know what you are using to set and read cookies I really do no have an answer for you With whatever you are using, can you… Set Cookie: “test=Test" testCookie := Read Cookie “test” If testCookie = “Test” Then Remove Cookie: “test” // cookies are not

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread Jim Labos - infobase via 4D_Tech
Yes but I am trying to detect if Cookies are "Disabled". If I can read the Cookie it exists and there is no problem. If I cannot read a Cookie then I will create it and that is where the problem lies as one cannot know if it was or not. At least not immediately. That is the predicament. Cheers

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread Jim Labos - infobase via 4D_Tech
I am creating the cookie and immediately after that checking if cookie exists. We handle our own session so no we do not use 4D Session method. So by session I mean the initial call on the server. Using v13 in this application. 1: User hits server with a URL. 2: Server analyzes URL and if it

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread Chip Scheide via 4D_Tech
you may never be able to detect such a cookie on this configuration. On Tue, 5 Jun 2018 09:43:24 -0700 (MST), Jim Labos - infobase via 4D_Tech wrote: > > I just want to be able to "detect" if c --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread John DeSoi via 4D_Tech
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

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread Jim Labos - infobase via 4D_Tech
Hi, Don't take this the wrong way but other then telling me what you do on your computer to the cache from browser I don't know what this has to do with the subject matter. I just want to be able to "detect" if cookies are enabled or not. It is not my business what the person connecting to the

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread Chip Scheide via 4D_Tech
regardless of what other info you get back there is one more thing to consider... People like me :) I go into the (on Mac) Library folder and locate cookie, history, cache, and other web related directories. I empty them, the lock them, i.e. the soft are can NOT write into that/those

How does one detect that Cookies are disabled?

2018-06-04 Thread Jim Labos - infobase via 4D_Tech
This particular Web application sends out emails with embedded ID's in a URL that uniquely identifies a connection. We have been able to do this because our customers forward us their list of members etc. We have a new customer that must send out the emails themselves and therefore it is not