MCPcopy Create free account
hub / github.com/kataras/iris / Session

Struct Session

sessions/session.go:17–29  ·  view source on GitHub ↗

Session should expose the Sessions's end-user API. It is the session's storage controller which you can save or retrieve values based on a key. This is what will be returned when sess := sessions.Start().

Source from the content-addressed store, hash-verified

15 //
16 // This is what will be returned when sess := sessions.Start().
17 Session struct {
18 sid string
19 isNew bool
20 flashes map[string]*flashMessage
21 mu sync.RWMutex // for flashes.
22 // Lifetime it contains the expiration data, use it for read-only information.
23 // See `Sessions.UpdateExpiration` too.
24 Lifetime *memstore.LifeTime
25 // Man is the sessions manager that this session created of.
26 Man *Sessions
27
28 provider *provider
29 }
30
31 flashMessage struct {
32 // if true then this flash message is removed on the flash gc

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected