Skip to content

rkusa/sessions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sessions

A sessions middleware that works well (but not exclusively) with rkusa/web.

Build Status GoDoc

Example

Use Middleware

app := app.New()
app.Use(sessions.Middleware("testsid", NewCookieStore([]byte("key"))))

Read session

sessions := sessions.FromContext(ctx)
fmt.Println(sessions["foo"])

License

MIT

Releases

No releases published

Packages

No packages published