Re: [WebDNA] Help with work-around format date

This WebDNA talk-list message is from

2013


It keeps the original formatting.
numero = 110429
interpreted = N
texte = --Apple-Mail=_8516F03B-023C-45BB-84CD-A75151A51FB5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 > Now I try "Max-Age" attribute from = http://tools.ietf.org/html/rfc6265#page-20 but no cookie set so I think = webdna does not understand Max-Age? >=20 >=20 > On Mon, Jun 10, 2013 at 12:05 AM, Steve Graham = wrote: > I cannot because the cookie expire date must be 90 days future so I = tried this which makes "Thursday, 04-Jan-2001 00:02:39": >=20 > [format days_to_date %A, %d-%b-%Y][math]{[date]}+90[/math][/format] = [time] GMT I just looked through some code I work .. and found these that all work. = We used to be on webdna 6.0, and are now on 7.1. I am pretty sure = these example all worked on both: I know cookies have been fussy for people... play with it. Also check = the archives.. old and new.. there is a lot of old posts about issues, = workarounds, etc. If 'Max-Age' is new, then I suspect there is a good chance webdna would = not understand it.. since webdna has not had a ton of new development in = recent years... short of just keeping it running on modern hardware.=20 [setcookie name=3Dtrackyyyyy_date&value=3D[date]&expires=3D[format = days_to_date %A, %d-%b-%Y][math]{[date]}+{00/01/0000}[/math][/format] = [time][!]---[math time]{[time]}[!]---+{04:00:00}---[/!][/math]---[/!] = GMT&path=3D/&domain=3Dyyyyy.com] [setcookie = name=3DLastTime_yyyyy_Modified&value=3D[URL][yyyyy][/URL]&expires=3D[forma= t days_to_date %A, %d-%b-%Y][math]{[date]}+1095[/math][/format] [math = time]{[time]}+{05:00:00}[/math] GMT&path=3D/] [setcookie name=3Dwwww-[eeee]-[qqq]&value=3Ddone&expires=3D[format = days_to_date %A, %d-%b-%Y][math]{[date]}+30[/math][/format] [math = time]{[time]}+{05:00:00}[/math] GMT&path=3D/] -G >=20 >=20 >=20 >=20 >=20 > On Sun, Jun 9, 2013 at 11:43 PM, Stuart Tremain = wrote: > Just use the normal [DATE] formatting: >=20 > [DATE %A, %d-%b-%Y] >=20 >=20 >=20 > Regards >=20 > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 > On 10/06/2013, at 2:37 PM, Steve Graham wrote: >=20 > > How to format an expire date for a cookie in 6.2.1 beta? Can you = suggest a workaround for normal syntax until bug is fixed? --Apple-Mail=_8516F03B-023C-45BB-84CD-A75151A51FB5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1

Now I try "Max-Age" attribute from http://tools.ietf.org/= html/rfc6265#page-20 but no cookie set so I think webdna does not = understand Max-Age?


On = Mon, Jun 10, 2013 at 12:05 AM, Steve Graham <skgrahamjr@gmail.com> wrote:
I cannot because the cookie expire date = must be 90 days future so I tried this which makes "Thursday, = 04-Jan-2001 00:02:39":

[format days_to_date %A, %d-%b-%Y][math]{[date]}+90[/math][/format] = [time] = GMT

I just looked through some code I work .. and found these that all = work.  We used to be on webdna 6.0, and are now on 7.1.  I am = pretty sure these example all worked on both:
I know cookies = have been fussy for people... play with it.  Also check the = archives.. old and new.. there is a lot of old posts about issues, = workarounds, etc.

If 'Max-Age' is new, then I = suspect there is a good chance webdna would not understand it.. since = webdna has not had a ton of new development in recent years... short of = just keeping it running on modern = hardware. 


[setcookie = name=3Dtrackyyyyy_date&value=3D[date]&expires=3D[format = days_to_date %A, %d-%b-%Y][math]{[date]}+{00/01/0000}[/math][/format] = [time][!]---[math time]{[time]}[!]---+{04:00:00}---[/!][/math]---[/!] = GMT&path=3D/&domain=3Dyyyyy.com]

[setcook= ie = name=3DLastTime_yyyyy_Modified&value=3D[URL][yyyyy][/URL]&expires=3D= [format days_to_date %A, %d-%b-%Y][math]{[date]}+1095[/math][/format] = [math time]{[time]}+{05:00:00}[/math] = GMT&path=3D/]

[setcookie = name=3Dwwww-[eeee]-[qqq]&value=3Ddone&expires=3D[format = days_to_date %A, %d-%b-%Y][math]{[date]}+30[/math][/format] [math = time]{[time]}+{05:00:00}[/math] = GMT&path=3D/]

-G







On Sun, Jun 9, = 2013 at 11:43 PM, Stuart Tremain <webdna@idfk.com.au> wrote:
Just use the normal [DATE] formatting:

[DATE %A, %d-%b-%Y]



Regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA
webdna@idfk.com.au




On 10/06/2013, at 2:37 PM, Steve Graham <skgrahamjr@gmail.com> wrote:

> How to format an expire date for a cookie in 6.2.1 beta?  Can = you suggest a workaround for normal syntax until bug is fixed?
=

= --Apple-Mail=_8516F03B-023C-45BB-84CD-A75151A51FB5-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Help with work-around format date: SOLVED (Steve Graham 2013)
  2. Re: [WebDNA] Help with work-around format date (Donovan Brooke 2013)
  3. Re: [WebDNA] Help with work-around format date (John Butler 2013)
  4. Re: [WebDNA] Help with work-around format date (Steve Graham 2013)
  5. Re: [WebDNA] Help with work-around format date (Donovan Brooke 2013)
  6. Re: [WebDNA] Help with work-around format date (Steve Graham 2013)
  7. Re: [WebDNA] Help with work-around format date (christophe.billiottet@webdna.us 2013)
  8. Re: [WebDNA] Help with work-around format date (Steve Graham 2013)
  9. Re: [WebDNA] Help with work-around format date (Steve Graham 2013)
  10. Re: [WebDNA] Help with work-around format date (Steve Graham 2013)
  11. Re: [WebDNA] Help with work-around format date (John Butler 2013)
  12. Re: [WebDNA] Help with work-around format date (Stuart Tremain 2013)
  13. Re: [WebDNA] Help with work-around format date (Steve Graham 2013)
  14. Re: [WebDNA] Help with work-around format date (Steve Graham 2013)
  15. Re: [WebDNA] Help with work-around format date (Stuart Tremain 2013)
  16. Re: [WebDNA] Help with work-around format date (Steve Graham 2013)
  17. Re: [WebDNA] Help with work-around format date (Stuart Tremain 2013)
  18. [WebDNA] Help with work-around format date (Steve Graham 2013)
--Apple-Mail=_8516F03B-023C-45BB-84CD-A75151A51FB5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 > Now I try "Max-Age" attribute from = http://tools.ietf.org/html/rfc6265#page-20 but no cookie set so I think = webdna does not understand Max-Age? >=20 >=20 > On Mon, Jun 10, 2013 at 12:05 AM, Steve Graham = wrote: > I cannot because the cookie expire date must be 90 days future so I = tried this which makes "Thursday, 04-Jan-2001 00:02:39": >=20 > [format days_to_date %A, %d-%b-%Y][math]{[date]}+90[/math][/format] = [time] GMT I just looked through some code I work .. and found these that all work. = We used to be on webdna 6.0, and are now on 7.1. I am pretty sure = these example all worked on both: I know cookies have been fussy for people... play with it. Also check = the archives.. old and new.. there is a lot of old posts about issues, = workarounds, etc. If 'Max-Age' is new, then I suspect there is a good chance webdna would = not understand it.. since webdna has not had a ton of new development in = recent years... short of just keeping it running on modern hardware.=20 [setcookie name=3Dtrackyyyyy_date&value=3D[date]&expires=3D[format = days_to_date %A, %d-%b-%Y][math]{[date]}+{00/01/0000}[/math][/format] = [time][!]---[math time]{[time]}[!]---+{04:00:00}---[/!][/math]---[/!] = GMT&path=3D/&domain=3Dyyyyy.com] [setcookie = name=3DLastTime_yyyyy_Modified&value=3D[url][yyyyy][/URL]&expires=3D[forma= t days_to_date %A, %d-%b-%Y][math]{[date]}+1095[/math][/format] [math = time]{[time]}+{05:00:00}[/math] GMT&path=3D/] [setcookie name=3Dwwww-[eeee]-[qqq]&value=3Ddone&expires=3D[format = days_to_date %A, %d-%b-%Y][math]{[date]}+30[/math][/format] [math = time]{[time]}+{05:00:00}[/math] GMT&path=3D/] -G >=20 >=20 >=20 >=20 >=20 > On Sun, Jun 9, 2013 at 11:43 PM, Stuart Tremain = wrote: > Just use the normal [date] formatting: >=20 > [DATE %A, %d-%b-%Y] >=20 >=20 >=20 > Regards >=20 > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 > On 10/06/2013, at 2:37 PM, Steve Graham wrote: >=20 > > How to format an expire date for a cookie in 6.2.1 beta? Can you = suggest a workaround for normal syntax until bug is fixed? --Apple-Mail=_8516F03B-023C-45BB-84CD-A75151A51FB5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1

Now I try "Max-Age" attribute from http://tools.ietf.org/= html/rfc6265#page-20 but no cookie set so I think webdna does not = understand Max-Age?


On = Mon, Jun 10, 2013 at 12:05 AM, Steve Graham <skgrahamjr@gmail.com> wrote:
I cannot because the cookie expire date = must be 90 days future so I tried this which makes "Thursday, = 04-Jan-2001 00:02:39":

[format days_to_date %A, %d-%b-%Y][math]{[date]}+90[/math][/format] = [time] = GMT

I just looked through some code I work .. and found these that all = work.  We used to be on webdna 6.0, and are now on 7.1.  I am = pretty sure these example all worked on both:
I know cookies = have been fussy for people... play with it.  Also check the = archives.. old and new.. there is a lot of old posts about issues, = workarounds, etc.

If 'Max-Age' is new, then I = suspect there is a good chance webdna would not understand it.. since = webdna has not had a ton of new development in recent years... short of = just keeping it running on modern = hardware. 


[setcookie = name=3Dtrackyyyyy_date&value=3D[date]&expires=3D[format = days_to_date %A, %d-%b-%Y][math]{[date]}+{00/01/0000}[/math][/format] = [time][!]---[math time]{[time]}[!]---+{04:00:00}---[/!][/math]---[/!] = GMT&path=3D/&domain=3Dyyyyy.com]

[setcook= ie = name=3DLastTime_yyyyy_Modified&value=3D[url][yyyyy][/URL]&expires=3D= [format days_to_date %A, %d-%b-%Y][math]{[date]}+1095[/math][/format] = [math time]{[time]}+{05:00:00}[/math] = GMT&path=3D/]

[setcookie = name=3Dwwww-[eeee]-[qqq]&value=3Ddone&expires=3D[format = days_to_date %A, %d-%b-%Y][math]{[date]}+30[/math][/format] [math = time]{[time]}+{05:00:00}[/math] = GMT&path=3D/]

-G







On Sun, Jun 9, = 2013 at 11:43 PM, Stuart Tremain <webdna@idfk.com.au> wrote:
Just use the normal [date] formatting:

[DATE %A, %d-%b-%Y]



Regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA
webdna@idfk.com.au




On 10/06/2013, at 2:37 PM, Steve Graham <skgrahamjr@gmail.com> wrote:

> How to format an expire date for a cookie in 6.2.1 beta?  Can = you suggest a workaround for normal syntax until bug is fixed?
=

= --Apple-Mail=_8516F03B-023C-45BB-84CD-A75151A51FB5-- John Butler

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Dealer locator (1998) Sort Order on a page search (1997) CC and Europe (1999) Version 2.0 and 1.6 simultaneous (1997) Need help with search title (1998) Running 2 two WebCatalog.acgi's (1996) Grep and removing text (2002) Extended [ConvertChars] (1997) Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997) WebMerchant when CC network is down (1998) Math variable size-dumb question (1999) Spawn Wishes (1998) Multiple security dbs (1997) RE: completed orders database (1997) Cart # Starting at 1000 (2000) [WebDNA] SendMail Problems, 453 (2016) Code problems - Help (2000) insecuretextvars preference doesn't work (2000) Execute Applescript (1997) WebCat2b15MacPlugin - [protect] (1997)