I'd like to expand this question (sorry for the cut&paste, I just joined this list to get this answer :-)
If this is the case, how can you create a persistent cookie on the client? I would like to use it just to identify the user, not authorize her. Thanks in advance --and since it's my first post here, thanks for Webware! Costas ------ FROM: markus jaisDATE: 12/05/2001 15:36:33 SUBJECT: RE: [Webware-discuss] newbie question on cookies hello thanks, this explains the behavior is there a way to make it last for a specified amount of time. for example, with Perl's CGI.pm I can specify a string like "+2M", which means, that the cookie should stay on disk for 2 month I did not find anything like this in the sources. markus On Wednesday 05 December 2001 23:44, Aaron Held wrote: >by default it should be a session cookie, which only lives for the duration >of the browser session, they are not written to disk > >-Aaron >----- Original Message ----- >From: "markus jais" <<EMAIL: PROTECTED>> >To: <<EMAIL: PROTECTED>> >Sent: Wednesday, December 05, 2001 5:16 PM >Subject: [Webware-discuss] newbie question on cookies > > > hello > > I have the following script: > > > > ---- > > from WebKit.Page import Page > > class Hello(Page): > > def writeBody(self): > > self.writeln('Hello, world!') > > #self.response().setCookie('col', 'red') > > if self.response().hasCookie('col'): > > c = self.response().Cracker('col') > > h = "<h1 style=\"color:%s\"> python is great</h1>" % (c.value()) > > self.writeln(h) > > else: > > self.writeln("no cookie") > > self.response().setCookie('col', 'blue') > > ---- > > > > the browser output is: > > "Hello, world! no cookie " > > when I reaload the page, the output stays the same. > > > > when I uncomment the line before the "if" statement, then the output is > > > > Hello, world! > > python is great > > > > with the string "python is great" in red color. > > > > maybe may understanding of cookies in wrong, but I thougth that > > after reloading, the cookie should be set and the "if" should be true > > and the cookie should have the value "blue" > > > > when I look at > > $HOME/.netscape/cookies I see no such cookie. > > > > maybe I am calling the wrong function. > > > > please tell me, if my understanding is just wrong, or if I am using > > Webware incorrectly?? > > > > thanks in advance > > > > > > markus > > > > > > -- > > Markus Jais > > http://www.mjais.de > > <EMAIL: PROTECTED> > > The road goes ever on and on - Bilbo Baggins > > > > _______________________________________________ > > Webware-discuss mailing list > > <EMAIL: PROTECTED> > > https://lists.sourceforge.net/lists/listinfo/webware-discuss -- Markus Jais http://www.mjais.de <EMAIL: PROTECTED> The road goes ever on and on - Bilbo Baggins _______________________________________________ Webware-discuss mailing list <EMAIL: PROTECTED> https://lists.sourceforge.net/lists/listinfo/webware-discuss _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss