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:
> 
> 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 value on the server and immediately read it back. There is no 
>> way for the browser to have it yet. 
> 
> The code I quoted is Xojo code (not 4D) and it sets the cookie in the browser 
> from a Xojo web app. With Chrome’s developer’s console I can watch the cookie 
> being set when cookies are not being blocked.
> 
> What I should have understood in your post was that any web app or web server 
> can only determine if a cookie is set by what is passed from the browser in 
> the http header. So if my Xojo web app sets a cookie in the browser, that 
> would not be reflected in the header until the header was updated, which 
> would only happen the next time an exchange occurred between the web app or 
> web server and the browser. Xojo is adding the cookies it set since receiving 
> the current header to my test. 
> 
> For my idea to work in Xojo or 4D Web Server, there would have to be a way to 
> refresh the http header without refreshing the whole browser window. Perhaps 
> not possible.??. I noticed that eventually the header is updated after the 
> user has invoked a request or 2  to 4D (4d Web Server only talks to the Xojo 
> web app not the browser). Not sure when or what causes the header update 
> during those exchanges.
> 
> John
> 
> 
> 
> 
> 
> 
> John Baughman
> 1331 Auwaiku Street
> Kailua, Hawaii  96734
> (808) 262-0328
> john...@hawaii.rr.com
> **
> 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:4d_tech-unsubscr...@lists.4d.com
> **

**
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:4d_tech-unsubscr...@lists.4d.com
**

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
**
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:4d_tech-unsubscr...@lists.4d.com
**

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 value on the server and immediately read it back. There is no 
> way for the browser to have it yet. 

The code I quoted is Xojo code (not 4D) and it sets the cookie in the browser 
from a Xojo web app. With Chrome’s developer’s console I can watch the cookie 
being set when cookies are not being blocked.

What I should have understood in your post was that any web app or web server 
can only determine if a cookie is set by what is passed from the browser in the 
http header. So if my Xojo web app sets a cookie in the browser, that would not 
be reflected in the header until the header was updated, which would only 
happen the next time an exchange occurred between the web app or web server and 
the browser. Xojo is adding the cookies it set since receiving the current 
header to my test. 

For my idea to work in Xojo or 4D Web Server, there would have to be a way to 
refresh the http header without refreshing the whole browser window. Perhaps 
not possible.??. I noticed that eventually the header is updated after the user 
has invoked a request or 2  to 4D (4d Web Server only talks to the Xojo web app 
not the browser). Not sure when or what causes the header update during those 
exchanges.

John






John Baughman
1331 Auwaiku Street
Kailua, Hawaii  96734
(808) 262-0328
john...@hawaii.rr.com
**
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:4d_tech-unsubscr...@lists.4d.com
**

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 enabled, the 
*next* request to the same server (with conditions related to the url) will 
have a "Cookie" header with the value from the previous request.
 
If you wanted to do this in what *appears* to be a single page request, your 
initial request to the server could return some Javascript that immediately 
calls back to the server with the cookie value (or reports it not found). Of 
course, via Javascript, you could also check for the cookie and complain to the 
user directly that cookies are off without ever reporting the status back to 
the server.

John DeSoi, Ph.D.


> On Jun 5, 2018, at 3:51 PM, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I will be exploring further why Xojo is seeing the cookie when in fact it has 
> not been set. I suspect that it is not really reading the cookie from the 
> browser but instead storing the cookie value for the duration of the current 
> request. Perhaps it has to, since it really cannot be read from the browser 
> yet.

**
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:4d_tech-unsubscr...@lists.4d.com
**

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 does work right
after the WEB Send Blob or WEB Send File but before Web Process ends
execution.

Cheers





-
Jim Labos - infobase
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
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:4d_tech-unsubscr...@lists.4d.com
**

Re: Flexible SVG ID Strategy

2018-06-05 Thread Keisuke Miyako via 4D_Tech
SVG is XML, so you can have as many namespaces as you like.

in all of my SVG editors I define a private namespace,
which contains extended information such as group ID.

it also helps to store transform values (rotate, scale, translate)
as individual attributes in said namespace,
so much easier than to extract via regex or whatever each time.

https://github.com/miyako/4d-widget-svg-area-v3

https://github.com/miyako/4d-widget-svg-area-v2

> 2018/06/06 5:22、John J Foster via 4D_Tech <4d_tech@lists.4d.com> のメール:
> So wondering if anyone has decided on a strategy for managing SVG OD’s and 
> how to best handle moving things around?




**
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:4d_tech-unsubscr...@lists.4d.com
**

4D Write Pro using 4D Write-Like Toolbar

2018-06-05 Thread JOHN BAUGHMAN via 4D_Tech
I am struggling trying to get the 4D Write-Like Toolbar to work…

http://download.4d.com/4DBlog/Tips/4DWriteLikeToolbarDemo.zip

I am trying to create a transition from 4D Write to 4D Write Pro so I have 
added a second page to the input from and moved the 4D Write area to the this 
new second page. On the first page I have put the 4D Write Pro area and the 
Write-Like sub form. To make it simple I have named the 4D Write Pro the same 
name used in the Write-Like Demo... WP_WriteProArea

I am working in my templates table. When an existing template record is opened, 
in the on load event of the input form, I am initializing …

C_OBJECT(WP_Information;WP_WriteProArea)
WP_WriteProArea:=WP New("") 
WP_Information:=New object("IsNewDocument";True)
WP_Information.DocumentInfo:=New 
object("FilePath";"";"Modification";False)
FORM GOTO PAGE(2)

In the demo all of the above is done before the form is opened. When the form 
is opened in the On Load phase of the main window, the window title is set as 
is the focus set  to the 4D Write Pro area. Nothing more in the main window. 

That leaves the sub form On load event. Just to make sure that the subform is 
working, I would normally to to page 2, but I am leaving the user on page 1 and 
have confirmed that all of the On Load code has run in the subform. At this 
point the 4D Write Pro area is blank, exactly like it is in the Demo.

The problem is that unlike the demo, nearly all of the menu items in the 
subform are disabled. 

The load document icon works, so I loaded a wp4 document from disk. That 
worked. If I select some text, then select a font from the font popup list, 4D 
throws an error on this line…

$wpRange:=WP Get selection(WP_WriteProArea)  //“form object not found 
or form object is not a 4D Write Pro Form Object"

This is in the method GetSelectionInfo which I have not touched.

The only difference that I can see between what I have done and what is in the 
demo is that I have ca;lled WP_WriteProArea:=WP New("") in the on load phase of 
the input form and the demo calls it before the form is opened. I hope that is 
not the problem.

Any help would be greatly appreciated.

John







John Baughman
1331 Auwaiku Street
Kailua, Hawaii  96734
(808) 262-0328
john...@hawaii.rr.com

**
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:4d_tech-unsubscr...@lists.4d.com
**

Re: High Sierra - Export Text in 4D v13.6

2018-06-05 Thread JOHN BAUGHMAN via 4D_Tech
I noticed this the other day as well. Did not pay much attention to it, but 
will do so. I think, in fact, that what I saw was not a 4D thing but had 
something to do with saving a PDF to file from the print dialog. It may have 
been from 4D, but I don’t think so.

I will keep an eye out.



> On Jun 5, 2018, at 10:37 AM, setar accnt via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Came across a weird behavior and want to know if anyone else has encountered 
> this and how to solve this (mac & V13.6 & v15)
> I use a document (“StoreHere.txt") in the Resources folder to store some data 
> in it, to be used later. 
> 
> After using the command Export Text, the document is ‘updated’ allright BUT 
> there is a .temp file with a long filename 
> (“07B29AA87F90481387491D4EEF206BB6.temp”) ALSO created in that Resource 
> folder. 
> 
> But this is not wanted because every time the export is performed a new file 
> with long name is created !!
> 
> It does this ONLY with High Sierra (10.13.4), none of the previous mac os X 
> has this (I tested this). 
> (fyi: 4D v15 & up do not exhibit this behavior with os 10.13.4 )
> 
> Have a test db V13.6 with 1 table and 1 or 2 fields (doesn’t matter how many) 
> and 2 or more records. 
> I use one LongInt and one Text field.
> 
> then make a method that I can call using a button on the layout.
> 
> this is the method: 
> C_TEXT($sDocName)
> 
> $sDocName:=Get 4D folder(Current Resources folder)+"StoreHere.txt” 
> 
> ALL RECORDS([Table_1])
> ORDER BY([Table_1];[Table_1]seqNo;>)
> 
> FORM SET OUTPUT([Table_1];"export")
> 
> EXPORT TEXT([Table_1];$sDocName)
> 
> FORM SET OUTPUT([Table_1];"output")
> 
> Any input on this is very welcome. 
> Greetings
> 
> ernie hilgers(aruba)
> 
> 
> 
> **
> 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:4d_tech-unsubscr...@lists.4d.com
> **

**
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:4d_tech-unsubscr...@lists.4d.com
**

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 are NOT disabled: "+Session.Cookies.Value("testing")
  
else
  MsgBox "Cookies are MAY BE disabled: "+Session.Cookies.Value("testing")
  
end if

As expected it reported that cookies were NOT disabled. Watching cookies in the 
Web Developer Storage tab in Firefox. however, I could not see the cookie until 
I refreshed the browser. 

Then I ran the same thing with cookies disabled and surprisingly I got that 
cookies were still NOT disabled. In the storage tab as before I could not see 
the cookie, only this time when I refreshed the browser, I still did not see 
the cookie.

After a bit of more testing, I have concluded that as John stated cookies are 
not in fact set until the browser receives a request subsequent to the one that 
sets the cookie. 

I will be exploring further why Xojo is seeing the cookie when in fact it has 
not been set. I suspect that it is not really reading the cookie from the 
browser but instead storing the cookie value for the duration of the current 
request. Perhaps it has to, since it really cannot be read from the browser yet.

In any event, I do not think that testing for a test cookie is going to work. 
At least it will not work using a Xojo web app.

John






> On Jun 5, 2018, at 10:31 AM, Jim Labos - infobase via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> 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 proceed from there.
> 
> Cheers
> 
> 
> 
> 
> 
> -
> Jim Labos - infobase
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **
> 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:4d_tech-unsubscr...@lists.4d.com
> **

**
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:4d_tech-unsubscr...@lists.4d.com
**

Re: Flexible SVG ID Strategy

2018-06-05 Thread Keith Culotta via 4D_Tech
The easiest way I've found to move the objects in a group is to 
SVG_SET_TRANSFORM_TRANSLATE the group when the mouse is moving.  
Later if you UNGROUP, the translation needs to be spread out over the group's 
children so they don't jump to new locations.

You can use SVG_Get_root_reference in a loop to find the topmost group of the 
clicked object (the last one whose TYPE is not "svg").

Unless an ID needs to be meaningful, I've been letting the 4D SVG Engine set 
the ID (SVG_SET_OPTIONS), or setting the ID to GENERATE UUID.

Keith - CDI

> On Jun 5, 2018, at 3:22 PM, John J Foster via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi All,
> 
> {I sent this yesterday & and again earlier today and it never made it 
> through?}
> 
> I am trying to create an interface built using SVG. The svg image will 
> include many different kinds of complex objects. Bu complex I mean that each 
> object is itself a complex object built by SVG and added into the main SVG 
> image.
> 
> I want to be able to identify any part of an image I click on even if it’s 
> part of a group. But I also want to be able to move the object around to 
> different coords in the image.
> 
> I am using SVG_SET_ID (domSvg;”id_name...”) set each part of the objects ID. 
> when I click on them I see the ID and this works great. BUT...
> 
> But when I move an object I want the entire object to move not just the part 
> of it.
> 
> So wondering if anyone has decided on a strategy for managing SVG OD’s and 
> how to best handle moving things around?
> 
> If this doesn’t make sense please ask questions.
> 
> BTW I am running in 4D v16 r6 and will be moving to v17.
> 
> Appreciate,
> John…

**
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:4d_tech-unsubscr...@lists.4d.com
**

High Sierra - Export Text in 4D v13.6

2018-06-05 Thread setar accnt via 4D_Tech
Came across a weird behavior and want to know if anyone else has encountered 
this and how to solve this (mac & V13.6 & v15)
I use a document (“StoreHere.txt") in the Resources folder to store some data 
in it, to be used later. 

After using the command Export Text, the document is ‘updated’ allright BUT 
there is a .temp file with a long filename 
(“07B29AA87F90481387491D4EEF206BB6.temp”) ALSO created in that Resource folder. 

But this is not wanted because every time the export is performed a new file 
with long name is created !!

It does this ONLY with High Sierra (10.13.4), none of the previous mac os X has 
this (I tested this). 
(fyi: 4D v15 & up do not exhibit this behavior with os 10.13.4 )

Have a test db V13.6 with 1 table and 1 or 2 fields (doesn’t matter how many) 
and 2 or more records. 
I use one LongInt and one Text field.

then make a method that I can call using a button on the layout.

this is the method: 
C_TEXT($sDocName)

$sDocName:=Get 4D folder(Current Resources folder)+"StoreHere.txt” 

ALL RECORDS([Table_1])
ORDER BY([Table_1];[Table_1]seqNo;>)

FORM SET OUTPUT([Table_1];"export")

EXPORT TEXT([Table_1];$sDocName)

FORM SET OUTPUT([Table_1];"output")

Any input on this is very welcome. 
Greetings

ernie hilgers(aruba)



**
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:4d_tech-unsubscr...@lists.4d.com
**

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 proceed from there.

Cheers





-
Jim Labos - infobase
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
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:4d_tech-unsubscr...@lists.4d.com
**

SVG Area and sizing monitor issues

2018-06-05 Thread John J Foster via 4D_Tech
Hi All,

{I sent this yesterday & and again earlier today and it never made it through?}

Another issue that is becoming a challenge is managing for monitors that can be 
retina or not or large screens or not.

I am currently studying the best way to manage this. I am starting with 
allowing the user to set a portrait or landscape size for the 4D SVG area they 
will manage within. The user will be able to drag and drop objects onto the 
area and move them to specific coordinates. This will be saved as a template 
and be able to be reused. 

The SVG area on the screen will map to a portrait or landscape form that will 
print. (that seems like the easier part). 

My current work environment is to plug my Retina MacBook Pro 15” into a BENQ 
PD3200Q 32” 3840x2160 4K. I can work in a very large area on this monitor (very 
easy on the eyes) and about half or less when it goes back to my MacBook Pro. 
And of course then I have to concern myself with laptops and other monitors my 
users will work off of windows and Macs.

With an SVG area there are several possibilities. One of them is to scale the 
size of the image to scale with the monitor dimensions. Not sure if I like it 
(rather manually zoom in/out) but I’ll likely test it as an option. Or I could 
define the SVG work area (portrait/landscape) and adjust size but maintain the 
same dimensions. Seems like a better option. And who knows at this point …

So is anyone dealing with this issue? How have you managed it? What do your 
users prefer?

BTW I am running in 4D v16 r6 and will be moving to v17. It is a standalone 
cross platform application.

Appreciate,
John…
**
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:4d_tech-unsubscr...@lists.4d.com
**

Flexible SVG ID Strategy

2018-06-05 Thread John J Foster via 4D_Tech
Hi All,

{I sent this yesterday & and again earlier today and it never made it through?}

I am trying to create an interface built using SVG. The sag image will include 
many different kinds of complex objects. Bu complex I mean that each object is 
itself a complex object built by SVG and added into the main SVG image.

I want to be able to identify any part of an image I click on even if it’s part 
of a group. But I also want to be able to move the object around to different 
coords in the image.

I am using SVG_SET_ID (domSvg;”id_name...”) set each part of the objects ID. 
when I click on them I see the ID and this works great. BUT...

But when I move an object I want the entire object to move not just the part of 
it.

So wondering if anyone has decided on a strategy for managing SVG OD’s and how 
to best handle moving things around?

If this doesn’t make sense please ask questions.

BTW I am running in 4D v16 r6 and will be moving to v17.

Appreciate,
John…
**
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:4d_tech-unsubscr...@lists.4d.com
**

Re: OK to Create V12 Built Server for OS X on OS X 10.13

2018-06-05 Thread Douglas von Roeder via 4D_Tech
Jim:

Thanks for that feedback.

That's encouraging that it's in daily use and runs pretty well but given
that there are even some issues, I'm leaning against doing a build on
10.13. After moving to the new computer but I can either do the builds on
the current machine (a MacBook Pro running 10.11.6) or run 10.11.6 in a
Parallels VM on the new machine.

"Happily moved on to 16R6."
Would that be the case here! The client has paid maintenance to get them to
14.6 but, despite the fact that they have >140 concurrent users on their
system, they're loathe to upgrade past 14.6. This an app from the disco era
- is has one fixed size window and is running in a main event loop. :-)

--
Douglas von Roeder
949-336-2902


On Tue, Jun 5, 2018 at 9:58 AM Jim Hays via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Hey Doug,
>
> I don't have much to offer but thought I'd chime in at least.
>
> We haven't deployed v12.6 server on Mac for a while, but we do have some
> _clients_ running v12.6 on macOS.
> One user in our office runs on macOS 10.12 everyday - generally works OK.
>
> However, for development we found that v12.6 (client) was crashing a lot,
> so we just don't do it on our new Macs.
> And we typically do a new build for Mac about once every 3 years.
>
> Happily moved on to 16R6.
>
> Jim
>
> On Fri, Jun 1, 2018 at 5:34 PM Douglas von Roeder via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> > I have a client who's using 4D Server V12.6 on a Mac Pro running OS X
> 10.6.
> > The application is deployed using the built client and built server
> > applications.
> >
> > To date, I've been creating the applications on a Mac that's running
> > 10.11.6 but I'd like to switch to a machine that's using 10.13.
> >
> > I realize that the certification matrix for V12.6 stops at 10.9 but I've
> > had no reports of issues doing builds on 10.11. I'm wondering if there
> will
> > be issues with doing my builds on 10.13.
> >
> > Anyone have experience with this or could, perhaps, offer guidance on
> this
> > topic?
> >
> > --
> > Douglas von Roeder
> > 949-336-2902
> > **
> > 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:4d_tech-unsubscr...@lists.4d.com
> > **
> **
> 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:4d_tech-unsubscr...@lists.4d.com
> **
**
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:4d_tech-unsubscr...@lists.4d.com
**

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 after 4D sends the response but not
> before that. Upon the next connection there is no problem reading the
> Cookie.

The browser does not create the cookie until it receives your first response 
that contains a Set-Cookie header. There is no way for you to verify they have 
cookies enabled/disabled until they make a *second* request where you can see 
if your value is in the Cookie header.

John DeSoi, Ph.D.


**
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:4d_tech-unsubscr...@lists.4d.com
**

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 disabled

Else
   //cookies are probably disabled, alert the user

End If

John

> On Jun 5, 2018, at 7:28 AM, Jim Labos - infobase via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> So I cannot assume that the Cookie was created because of not being able to
> read it on same connection, and I cannot assume it wasn't created due to
> Cookies being disabled.

**
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:4d_tech-unsubscr...@lists.4d.com
**

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





-
Jim Labos - infobase
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
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:4d_tech-unsubscr...@lists.4d.com
**

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 passes checks for presence of cookie.
If Cookie does not exist we create it.

So at this point if the Cookie gets created all is fine but if user's
browser has Cookies disabled 4D does not get an error or any indication of
that.

If I try and read Cookie on same connection/session the Cookie can indeed
exist but it will come back as blank value. If Cookie had previously existed
then there is no need to check of course. We only want to check when we
create the Cookie.

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 after 4D sends the response but not
before that. Upon the next connection there is no problem reading the
Cookie.

So I cannot assume that the Cookie was created because of not being able to
read it on same connection, and I cannot assume it wasn't created due to
Cookies being disabled.

Thanks




-
Jim Labos - infobase
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
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:4d_tech-unsubscr...@lists.4d.com
**

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 
**
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:4d_tech-unsubscr...@lists.4d.com
**

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 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 
> <4d_tech@lists.4d.com> 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:4d_tech-unsubscr...@lists.4d.com
**

Re: OK to Create V12 Built Server for OS X on OS X 10.13

2018-06-05 Thread Jim Hays via 4D_Tech
Hey Doug,

I don't have much to offer but thought I'd chime in at least.

We haven't deployed v12.6 server on Mac for a while, but we do have some
_clients_ running v12.6 on macOS.
One user in our office runs on macOS 10.12 everyday - generally works OK.

However, for development we found that v12.6 (client) was crashing a lot,
so we just don't do it on our new Macs.
And we typically do a new build for Mac about once every 3 years.

Happily moved on to 16R6.

Jim

On Fri, Jun 1, 2018 at 5:34 PM Douglas von Roeder via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I have a client who's using 4D Server V12.6 on a Mac Pro running OS X 10.6.
> The application is deployed using the built client and built server
> applications.
>
> To date, I've been creating the applications on a Mac that's running
> 10.11.6 but I'd like to switch to a machine that's using 10.13.
>
> I realize that the certification matrix for V12.6 stops at 10.9 but I've
> had no reports of issues doing builds on 10.11. I'm wondering if there will
> be issues with doing my builds on 10.13.
>
> Anyone have experience with this or could, perhaps, offer guidance on this
> topic?
>
> --
> Douglas von Roeder
> 949-336-2902
> **
> 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:4d_tech-unsubscr...@lists.4d.com
> **
**
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:4d_tech-unsubscr...@lists.4d.com
**

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 server why or what he does. I
just need to know so I can re-act accordingly. The connection is not with a
website but it is to surveys that are mandated by the organization they
belong to. So it is in no way an attempt to intrude into their browser
history if that is what you are implying.

Being able to detect that cookies are disabled can allow us to alert them
that they will not be able to participate. It then becomes their choice.

Cheers

Jim Labos - infobase



-
Jim Labos - infobase
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
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:4d_tech-unsubscr...@lists.4d.com
**

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 directories.

This stops persistent cookies etc from functioning.  Stops web sites 
from downloading "stuff".
Once the browser has been exited, there is nothing left from previous 
web sessions.

All of this is in addition to ad blockers, and often indirection 
through TOR.


On Mon, 4 Jun 2018 16:15:52 -0700 (MST), Jim Labos - infobase via 
4D_Tech wrote:
> 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 possible to embed our usual URL. So now I am turning to
> "Cookies" and as I am new to the Cookie thing 4D has made it pretty simple
> to create and read them.
> 
> 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?
> 
> Thanks
> 
> 
> 
> -
> Jim Labos - infobase
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **
> 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:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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:4d_tech-unsubscr...@lists.4d.com
**