This package has been moved to https://github.com/go-gem/sessions. This project is no longer maintained, it is recommend to use Gem Sessions package. The Gem sessions package has been tested and it's API is same of Gorilla Sessions.
Sorry for any inconvenience.
This repo fork from gorilla/sessions.
This package just support fasthttp, if you looking for a sessions package for net/http, the gorilla/sessions is better.
clevergo/sessions provides cookie, filesystem and redis sessions and infrastructure for custom session backends.
The key features are:
- Simple API: use it as an easy way to set signed (and optionally encrypted) cookies.
- Built-in backends to store sessions in cookies, the filesystem or redis.
- Flash messages: session values that last until read.
- Convenient way to switch session persistency (aka "remember me") and set other attributes.
- Mechanism to rotate authentication and encryption keys.
- Interfaces and infrastructure for custom session backends: sessions from different stores can be retrieved and batch-saved using a common API.
go get github.com/clevergo/sessions
go run $GOPATH/src/github.com/clevergo/sessions/examples/main.go
See also examples
BSD licensed. See the LICENSE file for details.