Gelada is a middleware package, which provides a cookie-based session management.
go get -u github.com/iu0v1/gelada
go run ./examples/main.go
Or you can look on DEMO page, and then look code from demo in examples.
Read the doc.
Fork it, hack it, PR it.
Have a nice day.