Good morning,
this what a have figured out last night too.
I Had this problem months ago with a different enviremont.
And the only solution I've found was the same like you have done.
So is where anybody here who has succesfully used WebKit.Cookie with
c.setMaxAge(30*24*60*60) ?
Regards
Lutz
On Thu, 12 Jul 2001 12:37:47 -0400
"Jeff Johnson" <[EMAIL PROTECTED]> wrote:
> I had trouble getting Cookies to stick on Win2000, IIS 5, IE 5.5
until
> I changed my code to:
>
> from WebKit.Cookie import Cookie
> for name in ('state','countyno'):
> c = Cookie(name,locals()[name])
>
> #c.setMaxAge(30*24*60*60) # Doesn't cause the cookie to be
> saved to disk.
> #c.setVersion(1)
>
> #c._cookie['expires'] = "Friday, 27-Apr-01 11:11:11 GMT" #
> Does get saved to disk.
> expirationDate = DateTime.now() +
> DateTime.RelativeDateTime(months=+1)
> c._cookie['expires'] = expirationDate.Format("%A, %d-%b-%y
> %H:%M:%S GMT")
>
> self.response().addCookie(c)
> print c.headerValue()
>
> Jeff
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf
> > Of Gilles
> > Poidevin
> > Sent: Thursday, July 12, 2001 11:35 AM
> > To: Lutz Steinborn
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: [Webware-discuss] cookie webkit (again)
> >
> >
> > Thanks Lutz,
> > but could you test if the cookie is persistent?
> > if the cookie still exists after quitting and restarting the
browser
>
> >
> > -----Original Message-----
> > From: Lutz Steinborn [mailto:[EMAIL PROTECTED]]
> > Sent: jeudi, 12. juillet 2001 17:20
> > To: Gilles Poidevin
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [Webware-discuss] cookie webkit (again)
> >
> >
> > Hello,
> >
> > works ok with:
> > Apache 1.3.19 on Linux Kernel 2.4.4/SMP/mod_webkit/
> >
> > With Browsers:
> >
> > Opera 5.0 Linux
> > Opera 5.11 Win98
> > Netscape 4.77 Linux
> > Netscape 4.74 Win98
> > Netscape 6.0 Win98
> > IE 5.50 Win98
> >
> > So it lookes like a problem on IIS5.
> >
> > Best regards
> >
> > Lutz Steinborn
> >
> > On Thu, 12 Jul 2001 16:31:45 +0200
> > "Gilles Poidevin" <[EMAIL PROTECTED]> wrote:
> >
> > > I'm sorry to disturb you again with my cookie problem on IIS5
and
> > webkit
> > > but, does somebody can test this script on its configuration?
> > > I'd like to know if the problem is WebKit or the association of
> IIS5
> > and
> > > WebKit.
> > > The script is very standard and it uses the webkit classes:
> > >
> > > from WebKit.Page import Page
> > > from WebKit.Cookie import Cookie
> > > from time import *
> > >
> > > class CookieSessionTest(Page):
> > >
> > > def writeBody(self):
> > >
> > > if self.request().hasCookie('firstVisit'):
> > > firstVisit = self.request().cookie('firstVisit')
> > > self.writeln( "You've been here the first time at : %s
<br>"
> %
> > > firstVisit )
> > > else:
> > > firstVisit = asctime(localtime(time()))
> > > C = Cookie('firstVisit',firstVisit)
> > > C.setPath('/')
> > > C.setMaxAge(86400)
> > > C.setVersion(1)
> > > self.response().addCookie(C)
> > > self.writeln( "Welcome, this is your <font
color=green>first
> > > visit</font> <b>a cookie is stored on your computer</b>. It's
now
> :
> > %s
> > > <br>" % firstVisit )
> > >
> > > _______________________________________________
> > > Webware-discuss mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/webware-discuss
> >
> > _______________________________________________
> > Webware-discuss mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/webware-discuss
> >
>
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss