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

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103844
interpreted = N
texte =
Do you check in your browser to see what the cookie looks like? Also, at the bottom of my pages, in my admin area,= I list cookies (along with formvariables and listvariables) to see what's going on. This might help you troubleshoot. = I have always used the date format that includes a dash (e.g.,=A0Thu, 31= -Dec-1998 00:00:00 GMT), and never have any trouble.
Terry


On Tue, 20 Oct 2009 08:39:57 -0600
Govinda <govinda.webdnatalk@gmail.com> wrote:
> > On Oct 20, 2009, at 7:44 AM, Kenneth Grome wrote:
>
>>> You should also try to just put the= date/time code:
>>> [format=20 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 a= lready 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 sp= ecific 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 thi= s has always
>>worked for=20
>> 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=20
>> using this:
>>
>> [format days_to_date %a,= %d %b %Y]
>>
>> ... so maybe the webdna docs are outdated.
>>
>> Or maybe most web b= rowsers simply do not care that much
>>about the
>> specific date format in a cookie beca= use they can
>>probably "figure=20
>> 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.
>
>
>Frank and Ken, thank you both for taking a stab at this!
>
> I have tr= ied all you suggest, and more.. but still, 95%
>of the time, that cookie is being set to expire at end
>= of session despite the fact that it looks to me like it
>is supposed to expire on the date I am telling it to.=
> Weird. I did originally pull that cookie code straight
>from the docs.. and it even sets the expir= ation date to
>when I tell it to, once in a while!! That is the extra
>weird part! Frank, here is a sa= mple of that date/time
>code (what it returns.. as part of a the whole cookie,
>with [] changed to pip= es:
>
> <!--|setcookie
> name=3DlastVisitedProdMenuPage&value=3D[thisurl]&expires=3D[forma= t
> days_to_date %A, %d %b
>%Y][math]{[date]}+7[/math][/format] [math time]
>{[time]}+= {00:00:00}[/math] GMT&path=3D/|-->
>
> <!--|setcookie
>name=3DlastVisitedProdMenuPage&val= ue=3D/html_docs/
>maintenanceprogramvideo.html&expires=3DSunda= y, 26 Oct 2009
>16:00:19 GMT&path=3D/|-->
>
> (I= tried with and without the hyphen char in between the
>date parts.. and I tried changing the %A into %a...=
>still no luck.. still says they=20 expire at end of
>session)
>
> Ken, at this point, I = will be happy if I can just get
>the cookie to expire some days AFTER today.. regardless
>of the time= .
>
> I checked FF and safari (Mac).. both are not setting
>the expire date.
>
> W= ould one of you be willing to take my exact code, here
>this:
> [setcookie name=3DlastVisitedProdMenuPag= e&expires=3D[format
>days_to_date %a, %d %b
>%Y][math]{[date]}+7[/math][/format] 10:00:00[!]---[math >time] {[time]}+{00:00:00}[/math]---[/!]
>GMT&path=3D/&value=3D[thisurl]]
>
> and stic= k it on one of your pages and tell me what you
>get on your cookie sheet? Does it set to expire 7 days
>= out? ..or at end of session?
> Do you have any cookies successfully expiring some days
>out? If so, ca= n I see that code?
>
> ------------
> Govinda
> govinda.webdnatalk@gmail.com
>=
>
>
>
> ---------------------------------------------------------
> This me= ssage is sent to you because you are subscribed
>to
> the mailing list <talk@webdna.us>.
> To un= subscribe, E-mail to: <talk-leave@webdna.us>
> archives: http://mail.webdna.us/list= /talk@webdna.us
> old archives: http://dev.webdna.us/TalkListArchive/
> Bug Reporting:
>http= ://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288

=A0=
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 (Donovan Brooke 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 (Frank Nordberg 2009)
  5. Re: [WebDNA] why is this cookie being set to expire at end of ("Terry Wilson" 2009)
  6. Re: [WebDNA] why is this cookie being set to expire at end of browser session? (Govinda 2009)
  7. Re: [WebDNA] why is this cookie being set to expire at end of browser session? (Kenneth Grome 2009)
  8. Re: [WebDNA] why is this cookie being set to expire at end of browser (Frank Nordberg 2009)
  9. Re: [WebDNA] why is this cookie being set to expire at end of browser session? (Govinda 2009)
  10. Re: [WebDNA] why is this cookie being set to expire at end of browser (Donovan Brooke 2009)
  11. Re: [WebDNA] why is this cookie being set to expire at end of browser session? (Govinda 2009)
  12. Re: [WebDNA] why is this cookie being set to expire at end of browser (Donovan Brooke 2009)
  13. [WebDNA] why is this cookie being set to expire at end of browser session? (Govinda 2009)
Do you check in your browser to see what the cookie looks like? Also, at the bottom of my pages, in my admin area,= I list cookies (along with formvariables and listvariables) to see what's going on. This might help you troubleshoot. = I have always used the date format that includes a dash (e.g.,=A0Thu, 31= -Dec-1998 00:00:00 GMT), and never have any trouble.
Terry


On Tue, 20 Oct 2009 08:39:57 -0600
Govinda <govinda.webdnatalk@gmail.com> wrote:
> > On Oct 20, 2009, at 7:44 AM, Kenneth Grome wrote:
>
>>> You should also try to just put the= date/time code:
>>> [format=20 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 a= lready 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 sp= ecific 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 thi= s has always
>>worked for=20
>> 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=20
>> using this:
>>
>> [format days_to_date %a,= %d %b %Y]
>>
>> ... so maybe the webdna docs are outdated.
>>
>> Or maybe most web b= rowsers simply do not care that much
>>about the
>> specific date format in a cookie beca= use they can
>>probably "figure=20
>> 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.
>
>
>Frank and Ken, thank you both for taking a stab at this!
>
> I have tr= ied all you suggest, and more.. but still, 95%
>of the time, that cookie is being set to expire at end
>= of session despite the fact that it looks to me like it
>is supposed to expire on the date I am telling it to.=
> Weird. I did originally pull that cookie code straight
>from the docs.. and it even sets the expir= ation date to
>when I tell it to, once in a while!! That is the extra
>weird part! Frank, here is a sa= mple of that date/time
>code (what it returns.. as part of a the whole cookie,
>with [] changed to pip= es:
>
> <!--|setcookie
> name=3DlastVisitedProdMenuPage&value=3D[thisurl]&expires=3D[forma= t
> days_to_date %A, %d %b
>%Y][math]{[date]}+7[/math][/format] [math time]
>{[time]}+= {00:00:00}[/math] GMT&path=3D/|-->
>
> <!--|setcookie
>name=3DlastVisitedProdMenuPage&val= ue=3D/html_docs/
>maintenanceprogramvideo.html&expires=3DSunda= y, 26 Oct 2009
>16:00:19 GMT&path=3D/|-->
>
> (I= tried with and without the hyphen char in between the
>date parts.. and I tried changing the %A into %a...=
>still no luck.. still says they=20 expire at end of
>session)
>
> Ken, at this point, I = will be happy if I can just get
>the cookie to expire some days AFTER today.. regardless
>of the time= .
>
> I checked FF and safari (Mac).. both are not setting
>the expire date.
>
> W= ould one of you be willing to take my exact code, here
>this:
> [setcookie name=3DlastVisitedProdMenuPag= e&expires=3D[format
>days_to_date %a, %d %b
>%Y][math]{[date]}+7[/math][/format] 10:00:00[!]---[math >time] {[time]}+{00:00:00}[/math]---[/!]
>GMT&path=3D/&value=3D[thisurl]]
>
> and stic= k it on one of your pages and tell me what you
>get on your cookie sheet? Does it set to expire 7 days
>= out? ..or at end of session?
> Do you have any cookies successfully expiring some days
>out? If so, ca= n I see that code?
>
> ------------
> Govinda
> govinda.webdnatalk@gmail.com
>=
>
>
>
> ---------------------------------------------------------
> This me= ssage is sent to you because you are subscribed
>to
> the mailing list <talk@webdna.us>.
> To un= subscribe, E-mail to: <talk-leave@webdna.us>
> archives: http://mail.webdna.us/list= /talk@webdna.us
> old archives: http://dev.webdna.us/TalkListArchive/
> Bug Reporting:
>http= ://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288

=A0=
"Terry Wilson"

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:

different show next (1997) WebCat2: Items xx to xx shown, etc. (1997) converchars in sendmail context.... (2004) Tab Charactor (1997) Frames and WebCat (1997) comparison to Lasso 6 or 7 (2004) WebTen? (1997) Sorting error (1997) all db's in one folder and protected (1998) possible to oscillate between a [redirect] and [authenticate] every other login attempt? (2000) Re:Dumb Question about Docs (1997) Not really WebCat (1997) MacAuthorize and WebMerchant (1997) using showpage and showcart commands (1996) Unix DB Permission Error (2002) append=T problem (1998) Credit Card Checksum (1997) Extended [ConvertChars] (1997) switching users (1998) AAAH: stupid sendmail (2001)