PxPlus User Forum

Main Board => Discussions => Language => Topic started by: Christian.lanctot@jonas on September 20, 2018, 12:39:25 PM

Title: Outdated documentation *web/cookie
Post by: Christian.lanctot@jonas on September 20, 2018, 12:39:25 PM
Quote
Format 2:  CALL "*web/cookie;SET",name$,data$,path$,expires$,domain$

Use Format 2 to create and send a cookie. Your CALL should include five arguments:

name$ Name of the cookie
data$ Data to send to the browser
path$ Your file path criteria for matching the URL's path
expires$ Cookie's expiry date and/or time
domain$ Domain name of your web site

You can also set a sixth parameter to make sure the TCP connection is secure.

Well, as it turns out, the secure is required or else you get an error 36.

Title: Re: Outdated documentation *web/cookie
Post by: Mike King on September 21, 2018, 05:34:50 PM
Thank you for bringing this to our attention. 

We will have the documentation updated and the program adjusted to make the secure parameter optional in the next update.