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:
> 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:
Buying sans cart (1997)
[SHOWIF AND/OR] (1997)
GoLive CyberStudio 1.0.1 (1997)
Applescript in Webcatalog problem (1997)
Protect (1997)
RE: Formulas.db + Users.db (1997)
autosensing lanague selection (1997)
[WebDNA] tcp connect who is (2008)
WebCAT 3.x (2002)
Web Catalog vs. ICAT (1997)
WebCatalog/Mac 2.1b2 New Features (1997)
Robert Minor duplicate mail (1997)
Strange WebDNA server not running error (2006)
Generating Report Totals (1997)
Forms Search Questions (1997)
WebCatalog can't find database (1997)
Unexpected error (1997)
[url] (1997)
Hello??? (1997)
WebCatalog and WebTen (1997)