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