Re: Time code!

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43567
interpreted = N
texte = Bob Minor wrote: > So what would be the proper way to set a cookie so that it expired 1 hour > from now. In the past I would set it like so: > > [SETCOOKIE name=cookieName&value=sample&expires=[format days_to_date %A, > %d-%b-%Y][math]{[date]}+funky calc to compensate for > midnight[/math][/format] [math time]{[time]}+{06:00:00}[/math] > GMT&path=/&domain=www.yourserver.com] > > I am 5 hours behind gmt time right now so the cookie would expire an hour > later. When DST ends then I will be 6 hours behind gmt time and would need > to change the cookie set for [math time]{[time]}+{07:00:00}[/math] or my > cookies will expire right when they are set. > > Am I missing some basic premise here?No, you are right on. Now that you explained what you _really_ wanted to do, rather than how you think you need to do it, I can give you some better advice. The best way to handle this is to create an include file which determines whether or not DST is in effect, since WebDNA does not include a GMT date format (even though _every_ single platform's CRTL supports that format).I'll see if I can whip something up, since I am also annoyed that I have [remember] to edit my MIMEHeaders.inc file twice a year for the same reason.John-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Time code! (Bob Minor 2002)
  2. Re: Time code! (John Peacock 2002)
  3. Re: Time code! (dale's stuff 2002)
  4. Re: Time code! (Gary Krockover 2002)
  5. Re: Time code! (Bob Minor 2002)
  6. Re: Time code! (John Peacock 2002)
  7. Re: Time code! (dale@gmr.dresdner.net 2002)
  8. Re: Time code! (Bob Minor 2002)
  9. Re: Time code! (John Peacock 2002)
  10. Re: Time code! (dale@gmr.dresdner.net 2002)
  11. Re: Time code! (Bob Minor 2002)
  12. Re: Time code! (John Peacock 2002)
  13. Re: Time code! (Bob Minor 2002)
  14. Re: Time code! (Alain Russell 2002)
  15. Re: Time code! (John Peacock 2002)
  16. Time code! (Bob Minor 2002)
Bob Minor wrote: > So what would be the proper way to set a cookie so that it expired 1 hour > from now. In the past I would set it like so: > > [SETCOOKIE name=cookieName&value=sample&expires=[format days_to_date %A, > %d-%b-%Y][math]{[date]}+funky calc to compensate for > midnight[/math][/format] [math time]{[time]}+{06:00:00}[/math] > GMT&path=/&domain=www.yourserver.com] > > I am 5 hours behind gmt time right now so the cookie would expire an hour > later. When DST ends then I will be 6 hours behind gmt time and would need > to change the cookie set for [math time]{[time]}+{07:00:00}[/math] or my > cookies will expire right when they are set. > > Am I missing some basic premise here?No, you are right on. Now that you explained what you _really_ wanted to do, rather than how you think you need to do it, I can give you some better advice. The best way to handle this is to create an include file which determines whether or not DST is in effect, since WebDNA does not include a GMT date format (even though _every_ single platform's CRTL supports that format).I'll see if I can whip something up, since I am also annoyed that I have [remember] to edit my MIMEHeaders.inc file twice a year for the same reason.John-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ John Peacock

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:

Bug Report, maybe (1997) Date Math (1999) WebCat2b15MacPlugin - showing [math] (1997) displaying New products (using [date]) (1997) [defined]ish (1997) Need help with emailer- 2 issues (1997) Extended [ConvertChars] (1997) problem with [Format Days_To_Date] (2000) tricky embedded[showifs/hideifs] (w/ code.. long) (2000) [WebDNA] Ubuntu 14.04 & WebDNA (2017) about this server and links to who (1997) Error Lob.db records error message not name (1997) Emailed problem (2000) Not really WebCat (1997) [OT] Bad Hard Drive? (2003) [WebDNA] Middle Question (2015) Emailer help....! (1997) [NT] ie 4.0 required (1997) merchant accts. (1997) WC2b15 File Corruption (1997)