Closed ghost closed 7 years ago
What changes did you make to the code so it does not use the flashes? The cookie holds more than just the cookie, it holds all the session information. When you click logout, it deletes everything inside the session, but doesn't delete the cookie itself.
Just take this line out: https://github.com/blue-jay/blueprint/blob/master/controller/login/login.go#L87
And the Logout doesn't work for me. Is it the same for you?
Ah, you need to manually save the session: https://github.com/blue-jay/blueprint/blob/master/lib/flight/flight.go#L127
The FlashNotice() function does the saving for you.
Ah, thanks a lot. Didn't got that in the first place.
Which commit are you using? e65ca2be88e353b2bad9c57b1c3c8f2e0e2a46ff
Which operating system, processor architecture, and Go version are you using (
go env
)? Arch Linux, 64-bit, go1.8What did you do? I tried to build Blueprint without the Flashes.
What did you expect to see? That the Logout works.
What did you actually see? It seems like the Cookie doesn't get deleted.