PostgreSQL session store implementation for sessionup
go get github.com/swithek/sessionup-pgstore
Create and activate a new PgStore:
db, err := sql.Open("postgres", "...")
if err != nil {
// handle error
}
store, err := pgstore.New(db, "sessions", time.Minute * 5)
if err != nil {
// handle error
}
manager := sessionup.NewManager(store)