When using suas in GAE and setting the flash_msg, for some reason the cookie does not expire. The symptom is that no mater how many times I refresh the page the flash message is always there. When I debugged with chrome I can see that the expiration the flash_msg cookies was set to session. Even more troubling I found that all cookies expiry are set to session. Any idea? The only change I made to the SUAS code was removing the error raising in
def __ParseString(self, str, patt=Cookie._CookiePattern):
Also note that the flash_msg cookie has a domain other then “/”.
Update:
All the variables being session-ed are because they were meant to. SUAS has a persist variable that sets if the cookies will be session cookies or persist. As a work around for the flash messages I use the jQuery plug in for cookies and just delete the guys after I display them.
Those cookies do not expire on page load. They expire when the browser closes. What you need to do is at every page load, if flash is in session, display it and then force remove it from the session (on the server side).