Re: Time code!

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43572
interpreted = N
texte = dale@gmr.dresdner.net wrote: > On Thursday, September 19, 2002, at 04:40 PM, Bob Minor wrote: > >> Cookie expires based on the server time. > Bob's giving a slightly misleading answer. The server sets the cookie expiration, using time/date in GMT. The browser just stores that and everytime a page matches that cookie it is returned. I don't know that the browser expires the cookie or if the server stops accepting the cookie after the exipiration time (and from the standpoint of my code, I don't care either).In any case, the time that the cookie expires is based on the server's time, not the client's time, as translated to GMT.> > I must be missing something then. You can tell I only recently started > dealing with cookies :) > > If the cookie expires based on server time, what difference does it make > in the coding of the expire time? I mean I don't change the time on my > server as GMT doesn't change. So current time plus 1 hour should always > be the same shouldn't it?The problem is that the cookie must be set using GMT, but WebDNA does not provide any way to get that. You can only access local time on the server, which does change based on whether DST is in effect. Thus, there is a need to know when your offset to GMT changes. One simplistic way to deal with this is to change the server's timezone to GMT and always return GMT times.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)
dale@gmr.dresdner.net wrote: > On Thursday, September 19, 2002, at 04:40 PM, Bob Minor wrote: > >> Cookie expires based on the server time. > Bob's giving a slightly misleading answer. The server sets the cookie expiration, using time/date in GMT. The browser just stores that and everytime a page matches that cookie it is returned. I don't know that the browser expires the cookie or if the server stops accepting the cookie after the exipiration time (and from the standpoint of my code, I don't care either).In any case, the time that the cookie expires is based on the server's time, not the client's time, as translated to GMT.> > I must be missing something then. You can tell I only recently started > dealing with cookies :) > > If the cookie expires based on server time, what difference does it make > in the coding of the expire time? I mean I don't change the time on my > server as GMT doesn't change. So current time plus 1 hour should always > be the same shouldn't it?The problem is that the cookie must be set using GMT, but WebDNA does not provide any way to get that. You can only access local time on the server, which does change based on whether DST is in effect. Thus, there is a need to know when your offset to GMT changes. One simplistic way to deal with this is to change the server's timezone to GMT and always return GMT times.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:

keeping carts... (2005) Running 2 two WebCatalog.acgi's (1996) Trouble with Netscape (1998) Auto Fill Forms (2000) Search all Fields in a db (1997) performans tests... (2001) month or year in date field in lineitems continued... (1998) Archives... (1997) Security Issues and WebCommerce Solution (1997) Shipping Help! (1998) cron script for housekeeping and running WebCatalog? (1999) Mondo amounts of Mail [long] (1999) For those of you not on the WebCatalog Beta... (1997) New syntax feedback for 4.0 (2000) using # in a URL (2007) [ShowIf] either fields are blank (1998) Web*SSL and WebCatalog (1997) catagories (1997) AppleScript question (1997) High ASCII inside [LOOKUP] inside [LISTWORDS] (1998)