Ticket #32 (closed defect: fixed)
Flash message persists over multiple views
| Reported by: | anonymous | Owned by: | anonymous |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.8 |
| Component: | TurboGears | Version: | |
| Severity: | normal | Keywords: | flash |
| Cc: |
Description
Calling controllers.get_flash() fails to clear the turbogearsflash/tg_flash cookie under certain conditions. Adding a ..]path? = '/' to the cookie used to clear the message solves the problem.
Change History
Note: See
TracTickets for help on using
tickets.
How about using cherrypy.session for this? I suppose we don't get around using cookies in one or the other form if we don't want to use ?SESSIONID=<uglyhash>.
We could insert this in dev.cfg:
Then tg_flash() could simply set/unset cherrypy.sessiontg_flash_msg?.