github.com/clevergo/sessions

fasthttp sessions package, this package has been moved to https://github.com/go-gem/sessions, please use the new package.


Licenses
BSD-3-Clause/MIT
Install
go get github.com/clevergo/sessions

Documentation

Sessions package for Go(go programing language) fasthttp

Important

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.

GoDoc Build Status.

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.

Install

go get github.com/clevergo/sessions

Examples

go run $GOPATH/src/github.com/clevergo/sessions/examples/main.go

See also examples

License

BSD licensed. See the LICENSE file for details.