This is a session middleware for gin web framework. It's based on Gorilla/sessions and use boj/redistore as a redis store. The major thing it does is call context.Clear() to avoid memory leak.
go get -u github.com/businiaowyf/gin-session/redisess dep ensure go build ./examples curl http://localhost:8080/test You need install redis on your local machine first.