session
session copied to clipboard
Package session is a middleware that provides the session management of Macaron.
It's hard to destroy a non-current user's session...
We need: - A config option to switch on/off, default to be "on". - Set the HttpOnly cookie attribute when calling `SetCookie`.
memory provider works fine, but if I use mysql - it basically seems to be a no-op with no queries executed. The session is changed in memory, but doesn't write...
Destory isn't a word, but I imagine this will break backwards compatibility? https://github.com/go-macaron/session/blob/master/session.go#L57
Actually it would be good, if the cache/session implementation would support redis sentinel. I guess supporting it is extremly simple. it actually just needs a configuration. basically the redis client...