Re: [WebDNA] why is this cookie being set to expire at end of browser session?

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103842
interpreted = N
texte = > You should also try to just put the date/time code: > [format days_to_date %A, %d-%b-%Y][math]{[date]}+7[/math][/format] > [math time] {[time]}+{00:00:00}[/math] GMT > as text on a test page to see what output the code actually produces > (but I suppose you've already tried that). You can also remove the "+{00:00:00}" part since it's not doing anything anyways. I've found that my cookies never need specific time cutoffs anyways. If this is true for you, you can change the "[math time] {[time]}+{00:00:00}[/math]" part to "12:00:00" or"07:21:53" or any other valid HH:MM:SS time value. As far as the date itself is concerned this has always worked for me, and this is the specified date format in the webdna docs: [format days_to_date %A, %d-%b-%Y] ... but it seems to be different from what other programming languages recommend because most of the others seems to suggest using this: [format days_to_date %a, %d %b %Y] ... so maybe the webdna docs are outdated. Or maybe most web browsers simply do not care that much about the specific date format in a cookie because they can probably "figure it out" if it's not perfect anyways. Either way you should probably check your server time for accuracy, because if the server time got off for some reason your cookies could be expiring sooner or later than expected. Sincerely, Ken Grome Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] why is this cookie being set to expire at end of browser session? (Govinda 2009)
  2. Re: [WebDNA] why is this cookie being set to expire at end of browser session? (Govinda 2009)
  3. Re: [WebDNA] why is this cookie being set to expire at end of browser session? (Govinda 2009)
  4. Re: [WebDNA] why is this cookie being set to expire at end of browser session? (Kenneth Grome 2009)
  5. Re: [WebDNA] why is this cookie being set to expire at end of browser session? (Govinda 2009)
  6. Re: [WebDNA] why is this cookie being set to expire at end of browser session? (Govinda 2009)
  7. [WebDNA] why is this cookie being set to expire at end of browser session? (Govinda 2009)
> You should also try to just put the date/time code: > [format days_to_date %A, %d-%b-%Y][math]{[date]}+7[/math][/format] > [math time] {[time]}+{00:00:00}[/math] GMT > as text on a test page to see what output the code actually produces > (but I suppose you've already tried that). You can also remove the "+{00:00:00}" part since it's not doing anything anyways. I've found that my cookies never need specific time cutoffs anyways. If this is true for you, you can change the "[math time] {[time]}+{00:00:00}[/math]" part to "12:00:00" or"07:21:53" or any other valid HH:MM:SS time value. As far as the date itself is concerned this has always worked for me, and this is the specified date format in the webdna docs: [format days_to_date %A, %d-%b-%Y] ... but it seems to be different from what other programming languages recommend because most of the others seems to suggest using this: [format days_to_date %a, %d %b %Y] ... so maybe the webdna docs are outdated. Or maybe most web browsers simply do not care that much about the specific date format in a cookie because they can probably "figure it out" if it's not perfect anyways. Either way you should probably check your server time for accuracy, because if the server time got off for some reason your cookies could be expiring sooner or later than expected. Sincerely, Ken Grome Kenneth Grome

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:

[WebDNA] Help me install WebDNA (2012) WebDNA with Virtual Hosts (2007) File upload in Mac OS X - fixed (2002) Date Time Oddness (1999) Folder Follies (1998) Dynamic Generation of PDFs? (2003) Caching pages...again (2001) Counting Inventory (2003) RE: protect tag not working (1998) Same DB Same Time (2004) WebCat2b15MacPlugin - showing [math] (1997) WebCat2b15MacPlugin - [protect] (1997) WebCommerce: Folder organization ? (1997) Trouble with [fileinfo] - update: TIP OF THE DAY (THE/) unable to launch acgi in WebCat (1997) reading a email (2000) Exclude by date - multiple (1997) RE: Submitting ampersands in forms... (1998) dbs in globals or site folder (2005) [returnraw] (2005)