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
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
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:
>
>
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
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
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
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
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
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
> 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
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
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
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
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
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
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
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
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
18 matches
Mail list logo