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:
OT (But could use some help) Meta refresh not working. (2001)
RE: Formulas.db + Users.db (1997)
PCS Frames (1997)
requiring form fields? (2000)
setting line item numbers (1998)
Requiring that certain fields be completed (1997)
Help!HELP!HELP! (1999)
[protect] error page (1997)
PCS Frames (1997)
POP Mail Server reseting (1998)
Rollovers (1999)
How To question on setting up downloads (1997)
WebCatalog for guestbook ? (1997)
Capturing the referring site (1999)
Possible Bug in 2.0b15.acgi (1997)
color and size options / ARCHIVES (1997)
Bug? (1997)
Caching [include] files ... (1997)
users.db (1999)
Search/sort in URL Was: GuestBook example (1997)