Skip to content
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

Flashed messages persist infinitely #5

Open
Xe opened this issue Dec 15, 2014 · 2 comments
Open

Flashed messages persist infinitely #5

Xe opened this issue Dec 15, 2014 · 2 comments

Comments

@Xe
Copy link

Xe commented Dec 15, 2014

I am using:

s := sessions.GetSession(req)
s.AddFlash("You must be logged in to do that")

and the messages just pile up:

@Bochenski
Copy link
Member

This method just proxies back to the underlying gorilla/sessions library, and the Test_Flashes test in sessions_test.go to should verify that the flash messages are removed.

The tests are all passing, so not sure what's happening for you.

Happy to try and help though if you can provide the code you're using

Thanks

@Bochenski
Copy link
Member

Which store are you using - the tests use the cookie store, perhaps there is a problem in one of the other stores

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants