p wrote:
> I'm also having trouble getting the cookie to delete. Now, once I sett
> it using turbogears.flash, it keeps displaying on every page
> thereafter. So it seems to me there could be either of two reasons: 1)
> The .kid template use of flash is somehow buggy. 2) The use of sessions
> somehow interferes with the proper deletion (don't know the coupling
> between the cookie and sessions, so this is a total guess).

I've suffered from the same problem (in Firefox 1.0). I solved it by
adding a specific path to the cookie clearing code in get_flash() in
controllers.py.  The code now reads:

cherrypy.response.simpleCookie["turbogearsflash"] = ""
cherrypy.response.simpleCookie["turbogearsflash"]['expires'] = 0
cherrypy.response.simpleCookie['turbogearsflash']['path'] = '/'

(where turbogearsflash may be tg_flash in some versions); I added the
last line.

Nick

Reply via email to