Re: Bad Cookie / Internet Option / Internet Explorer
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 60570
interpreted = N
texte = Donovan Brooke wrote:> Well, I just checked the headers and I think I have a bug in you > mimeheaders.inc> > call = [include file=MIMEHeaders.inc&expires=5]> Results = Expires: Sun, 31 Dec -1 01:58:41> > Do you have a recent copy of your inc file by chance?There are a couple of things that need to be checked:In GMTDate.inc, the correct offset must be used (this is the server offset from UTC, formerly GMT, so for a server in the UK this is probably 0).Also in GMTDate.inc, on a non-Win32 platform, you have to check to see what [date format=%Z] returns during Daylight Savings Time, so that the proper offset will happen.If I view the headers from the site right now, I see this:Date: Tue Dec 21 20:16:30 2004 GMTLast-Modified: Tue Dec 21 20:16:30 2004 GMTExpires: Tue Dec 21 20:16:30 2004 GMTwhich is just wrong (it is currently 21:54 GMT where I am). The system clock will have to be fixed to get the MIME headers to work right...Johnp.s. the current headers I am using are after my signature (beware linewraps)-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748[!] ------- GMTdate.inc -------Takes optional parameter offset in minutes and returns current date/time in GMT long formatReplace the {5:00:00} with your non-DST offset from GMT[/!][math time&show=f]GMT={[date %X]}+{5:00:00}[showif [date format=%Z]^Daylight]-{1:00:00}[/showif][/math][!][/!][math time&show=f]NOW={[date %X]}[/math][!][/!][if "[offset]"="[raw][offset][/raw]"][!][/!][then][!][/!][math show=f]offsettime=0[/math][/then][!][/!][else][!][/!][math show=f]offsettime=[offset]*60[/math][/else][!][/!][/if][!]--- Create the GMTexpires variable[/!][math time&show=f]GMTexpires=[GMT]+[offsettime][/math][!]--- Create the MIMEexpires string[/!][text show=t]MIMEexpires=[!][/!][if ([GMT]>[NOW]) and ([GMTexpires]>[GMT]) and ([GMTexpires]<86400)][!] ---- all in the same day ----[/!][then][!][/!][date format=%a, %d %b %Y][!][/!][/then][!] ---- at least one day later ----[/!][else][!][/!][format days_to_date %a, %d %b %Y][math]{[date]}+{00/[!][/!][showif [GMTexpires]>86400][math]floor([GMTexpires]/86400)[/math][/showif][!][/!][showif [GMTexpires]<86401]01[/showif][!][/!]/0000}[/math][/format][!][/!][/else][!][/!][/if][!][/!] [Format Seconds_To_Time][GMTexpires][/Format][!][/!] GMT[/text][!] ------- MIMEHeaders.inc -------[/!][if "[expires]"="[raw][expires][/raw]"][!] ---- Check for input variable[/!][then][!][/!][math show=f]expires=0[/math][/then][!][/!][/if][!][/!][SETMIMEHEADER name=Date&value=[include file=^Includes/GMTdate.inc]][SETMIMEHEADER name=Last-modified&value=[include file=^Includes/GMTdate.inc]][SETMIMEHEADER name=Expires&value=[include file=^Includes/GMTdate.inc&offset=[expires]]]-------------------------------------------------------------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:
Donovan Brooke wrote:> Well, I just checked the headers and I think I have a bug in you > mimeheaders.inc> > call = [include file=MIMEHeaders.inc&expires=5]> Results = Expires: Sun, 31 Dec -1 01:58:41> > Do you have a recent copy of your inc file by chance?There are a couple of things that need to be checked:In GMTDate.inc, the correct offset must be used (this is the server offset from UTC, formerly GMT, so for a server in the UK this is probably 0).Also in GMTDate.inc, on a non-Win32 platform, you have to check to see what [date format=%Z] returns during Daylight Savings Time, so that the proper offset will happen.If I view the headers from the site right now, I see this:Date: Tue Dec 21 20:16:30 2004 GMTLast-Modified: Tue Dec 21 20:16:30 2004 GMTExpires: Tue Dec 21 20:16:30 2004 GMTwhich is just wrong (it is currently 21:54 GMT where I am). The system clock will have to be fixed to get the MIME headers to work right...Johnp.s. the current headers I am using are after my signature (beware linewraps)-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748[!] ------- GMTdate.inc -------Takes optional parameter offset in minutes and returns current date/time in GMT long formatReplace the {5:00:00} with your non-DST offset from GMT[/!][math time&show=f]GMT={[date %X]}+{5:00:00}[showif [date format=%Z]^Daylight]-{1:00:00}[/showif][/math][!][/!][math time&show=f]NOW={[date %X]}[/math][!][/!][if "[offset]"="[raw][offset][/raw]"][!][/!][then][!][/!][math show=f]offsettime=0[/math][/then][!][/!][else][!][/!][math show=f]offsettime=[offset]*60[/math][/else][!][/!][/if][!]--- Create the GMTexpires variable[/!][math time&show=f]GMTexpires=[GMT]+[offsettime][/math][!]--- Create the MIMEexpires string[/!][text show=t]MIMEexpires=[!][/!][if ([GMT]>[NOW]) and ([GMTexpires]>[GMT]) and ([GMTexpires]<86400)][!] ---- all in the same day ----[/!][then][!][/!][date format=%a, %d %b %Y][!][/!][/then][!] ---- at least one day later ----[/!][else][!][/!][format days_to_date %a, %d %b %Y][math]{[date]}+{00/[!][/!][showif [GMTexpires]>86400][math]floor([GMTexpires]/86400)[/math][/showif][!][/!][showif [GMTexpires]<86401]01[/showif][!][/!]/0000}[/math][/format][!][/!][/else][!][/!][/if][!][/!] [Format Seconds_To_Time][GMTexpires][/Format][!][/!] GMT[/text][!] ------- MIMEHeaders.inc -------[/!][if "[expires]"="[raw][expires][/raw]"][!] ---- Check for input variable[/!][then][!][/!][math show=f]expires=0[/math][/then][!][/!][/if][!][/!][SETMIMEHEADER name=Date&value=[include file=^Includes/GMTdate.inc]][SETMIMEHEADER name=Last-modified&value=[include file=^Includes/GMTdate.inc]][SETMIMEHEADER name=Expires&value=[include file=^Includes/GMTdate.inc&offset=[expires]]]-------------------------------------------------------------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/
John Peacock
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:
simple answer? [hideif] (1997)
[LOOKUP] (1997)
Double Spacing in Mails from Sendmail (2002)
Error.html (1997)
Resume Catalog ? (1997)
[include ...] behavior (1997)
WebCatalog 2.0 & WebDNA docs in HTML ... (1997)
Freeze (2003)
newbies to web, spaces in email address (1998)
Silly Question (1997)
Re:No Data (1997)
Re:Running 2 two WebCatalog.acgi's (1996)
Determining Method (2000)
Change Subtotal (2000)
Resetting a Formvariable (2000)
Protect vs Authenicate (1997)
Alphabetically or numerically (1999)
WebCat editing, SiteGuard & SiteEdit (1997)
The Box - (2002)
unable to launch acgi in WebCat (1997)