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:

    
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:

Where's Cart Created ? (1997) New command suggestion (1997) include (1998) PIXO support (1997) WebCat2b15MacPlugin - [protect] (1997) [WebDNA] Yet another call for hosts... (2009) (no subject) (1997) WebCat2 several catalogs? (1997) Classified Ads 4 Sale (1998) autocommit problem (1998) links page (2002) Pass Thru Page? (1998) Preventing code execution (2003) [WebDNA] WebDNA Crashing or Not **YES** (2008) WebCatalog for guestbook ? (1997) [listfiles] nested in a [loop] (1998) Stumped (1999) Does anyone have a TCPconnect that does multiple sends... (2000) Grep and Special Characters (2002) Extended [ConvertChars] (1997)