Quoting David Eriksson <[EMAIL PROTECTED]>:
> How do you set a cookie for use with static data.
>
> Just using: self.response().setCookie('bosse','mini')
> shares the same cookie as the session and will expire
> when the user closes the browser.
>
> So, I still want my session based cookie to work like
> before and the ability to create a static cookie that
> lasts until eternity.
I use the res.addCookie(c) function, something like:
from Webkit.Cookie import Cookie
c = Cookie('bosse','mini')
c.setExpires('a date well in the future')
res.addCookie(c)
Luke
--
In a sweet fruit, we miss the sour.
In a sour fruit, we miss the sweet.
Enjoying the fruit, we enjoy life.
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss