-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
session flashes not clearing #54
Comments
+1 |
1 similar comment
+1 |
for me it worked by calling saving session
|
I'm doing the same thing, and I see the flashes rendered by my template like this:
However, if I see the flash message, then navigate to another page, the flash message persists until I navigate again. What am I doing wrong? |
maybe call |
@vodolaz095 I'm already doing that quite liberally:
|
Have you tried saving just before the return (therefore after |
This seems to work, though I'm not sure why. |
The principle of flashes is that you read them once then delete them. It's what |
@clanstyles Does this solve your original problem as well? |
Session flashes aren't clearing I'm using go version go1.4.2 gccgo (GCC) 5.1.0 linux/amd64
There is only one "add flash" called and one "save" and then one "get flashes" and in Gorilla they're clearing, but they're not actually clearing on the next call. It removes them from the linked list but then a copy of gin somewhere must be taking over.
The text was updated successfully, but these errors were encountered: