You may want to check the spec. It could be that max age is a=20
proprietary Netscape header? I don't know - just guessing. You may=20
want to check with the W3C (http://www.w3.org/) site to see what's=20
actually to spec.
Mike
On Monday, September 16, 2002, at 12:50 PM, <jose@...
wrote:
> Well does this make any sense.=A0 It seems that the max-age works with=20=
> mozilla (I'm assuming Netscape as well, but have not checked it) but=20=
> not IE, while the expires seems to work with both.=A0 Pity really =
since=20
> the max-age is so much easier to use than the expires tag.=A0
> =A0
> does anyone else have any experience in this is, does this sound=20
> correct?
> =A0
> Jose
> -------- Original Message --------
> Subject: Re: [Webware-discuss] cookies
> From: Michael Engelhart <mengelhart@...>
> Date: Mon, September 16, 2002 5:33 am
> To: "jose" <jose@...>
>
> I haven't messed with Cookies explicitly in a while (java or webware)
> but I remember that there were 2 things that confused people and one
> was that there were browser inconsistencies on how they interpret the
> max-age header (for example I think versions of Netscape ignored it)
> and also I remember people saying that the time offset is the time on
> the server not the browser so if you're in different time zones and
> trying to use a fine grained max-age, it may not work for anyone
> outside of your time zone.
>
> Try setting your desktop time to the time of the server if they're in
> different time zones and see if that works.
>
> Mike
> On Monday, September 16, 2002, at 12:38 AM, jose wrote:
>
> > Hi all, I am trying to make a cookie last longer then the immediate
> > session. I thought this would work, but it doesn't. Am I doing
> > something wrong?
> >
> > <%
> > from WebKit.Cookie import Cookie
> >
> > cookiedata =3D {'fname':'jose',
> > 'lname':'galvez'}
> >
> > myCookie =3D Cookie('myCookie', cookiedata)
> > myCookie.setPath('/')
> > myCookie.setMaxAge(3000) #this should make the cookie last about an
> > hour
> >
> > self.response().addCookie(myCookie)
> >
> >
> > %>
> >
> >
> > Thanks for any and all help
> >
> > Jose
> >
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Webware-discuss mailing list
> > Webware-discuss@...
> > https://lists.sourceforge.net/lists/listinfo/webware-discuss
>
|