Re: Weird Cookie Problem - your answer

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 68910
interpreted = N
texte = The date adjustment will take care of that; at first I thought a one-day cookie wouldn't matter, but now that I think it through, it does. You are setting an expired cookie for the wee hours of the day you are currently in, because in England it is already past midnight when you are setting the cookie from 6 pm on. So that cookie will expire immediately. Partly right; sub 6 for 8, but CDT for PDT (you put in CST). You have a typo on one of the [/showif]s, so what, did you retype it? Anyway, here it is adjusted for your time zone: [format days_to_date %A, %d-%b-%Y][math]{[date]}+{00/01/0000}[showif [math]{[time]}+{06:00:00}[showif [date %Z]=CDT]-{01:00:00}[/showif][/math]<[math]{06:00:00}[showif [date %Z]=CDT]-{01:00:00}[/showif][/math]]+{00/01/0000}[/showif][/math][/format] [math time]{[time]}+{06:00:00}[showif [date %Z]=CDT]-{01:00:00}[/showif][/math] GMT Strange that it only cropped up now. Could be that your clients don't normally work evenings. Terry >--------------------------------------------------------_823485625_- >Date: Thu, 26 Apr 2007 11:21:04 -0500 >Subject: Re: Weird Cookie Problem - your answer >From: Eddie Z >Message-ID: >Content-type: text/plain; charset="US-ASCII" >Content-transfer-encoding: 7bit > >I'll give it a try tonight, but I still have questions... > >If this were a daylight savings issue, wouldn't the server only not set >cookies for that hour? Mine seems to not work for the 6 hours before >midnight. > >So my code would look like this?: >[format days_to_date %A, %d-%b-%Y][math]{[date]}+{00/01/0000}[showif >[math]{[time]}+{06:00:00}[showif [date >%Z]=CST]-{01:00:00}[/showif][/math]<[math]{06:00:00}[showif [date >%Z]=CST]-{01:00:00}[/showif][/math]]+{00/01/0000}[/showi][math][/format][mat >h time]{[time]}+{06:00:00}[showif [date %Z]=CST]-{01:00:00}[/showif][/math] >GMT -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://TightJacket.com -- stylish protection for your laptop -------------------------------------------------------------------------- Attitude is the only difference between ordeal and adventure. ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Weird Cookie Problem - your answer ( Terry Wilson 2007)
  2. Re: Weird Cookie Problem - your answer ( Stuart Tremain 2007)
  3. Re: Weird Cookie Problem - your answer ( Eddie Z 2007)
  4. Re: Weird Cookie Problem - your answer ( Paul Willis 2007)
  5. Re: Weird Cookie Problem - your answer ( Eddie Z 2007)
  6. Re: Weird Cookie Problem - your answer ( Terry Wilson 2007)
  7. Re: Weird Cookie Problem - your answer ( Terry Wilson 2007)
The date adjustment will take care of that; at first I thought a one-day cookie wouldn't matter, but now that I think it through, it does. You are setting an expired cookie for the wee hours of the day you are currently in, because in England it is already past midnight when you are setting the cookie from 6 pm on. So that cookie will expire immediately. Partly right; sub 6 for 8, but CDT for PDT (you put in CST). You have a typo on one of the [/showif]s, so what, did you retype it? Anyway, here it is adjusted for your time zone: [format days_to_date %A, %d-%b-%Y][math]{[date]}+{00/01/0000}[showif [math]{[time]}+{06:00:00}[showif [date %Z]=CDT]-{01:00:00}[/showif][/math]<[math]{06:00:00}[showif [date %Z]=CDT]-{01:00:00}[/showif][/math]]+{00/01/0000}[/showif][/math][/format] [math time]{[time]}+{06:00:00}[showif [date %Z]=CDT]-{01:00:00}[/showif][/math] GMT Strange that it only cropped up now. Could be that your clients don't normally work evenings. Terry >--------------------------------------------------------_823485625_- >Date: Thu, 26 Apr 2007 11:21:04 -0500 >Subject: Re: Weird Cookie Problem - your answer >From: Eddie Z >Message-ID: >Content-type: text/plain; charset="US-ASCII" >Content-transfer-encoding: 7bit > >I'll give it a try tonight, but I still have questions... > >If this were a daylight savings issue, wouldn't the server only not set >cookies for that hour? Mine seems to not work for the 6 hours before >midnight. > >So my code would look like this?: >[format days_to_date %A, %d-%b-%Y][math]{[date]}+{00/01/0000}[showif >[math]{[time]}+{06:00:00}[showif [date >%Z]=CST]-{01:00:00}[/showif][/math]<[math]{06:00:00}[showif [date >%Z]=CST]-{01:00:00}[/showif][/math]]+{00/01/0000}[/showi][math][/format][mat >h time]{[time]}+{06:00:00}[showif [date %Z]=CST]-{01:00:00}[/showif][/math] >GMT -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://TightJacket.com -- stylish protection for your laptop -------------------------------------------------------------------------- Attitude is the only difference between ordeal and adventure. ------------------------------------------------------------- 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://webdna.smithmicro.com/ 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:

WebCatalog 2.0 & WebDNA docs in HTML ... (1997) Price problem (1997) Who is doing sign-ups-got it (1998) Search group and ww (2003) Waitfor file (2000) Nested Loops and SHOWIFs (1997) no [search] with NT (1997) Re:Emailer and encryption (1997) Multiple Pulldowns/Gary (1997) Help with nested search (1998) [append] problem (1997) [WriteFile] problems (1997) ups quickcost [repost] (1999) Error Log.db --however (1997) Emailer.Out (1998) Link with [cart] in db field (1999) Documentation Feedback (1997) Off Topic: MacOS X Server on iMac (2000) SiteEdit Pro Update Announcement (1997) Another bug to squash (WebCat2b13 Mac .acgi) (1997)