mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 02:31:04 +01:00
minor comment updates for sessions package
Former-commit-id: 6f73c5d83861a1f61acda07e7f78cb882320dc8c
This commit is contained in:
parent
042603c311
commit
4ab889da5f
|
@ -22,8 +22,8 @@ Some trivial examples,
|
|||
```go
|
||||
import "github.com/kataras/iris/sessions"
|
||||
|
||||
sess := sessions.Start(http.ResponseWriter, *http.Request)
|
||||
sess.
|
||||
manager := sessions.Start(iris.Context)
|
||||
manager.
|
||||
ID() string
|
||||
Get(string) interface{}
|
||||
HasFlash() bool
|
||||
|
|
|
@ -89,5 +89,5 @@ func main() {
|
|||
sess.ShiftExpiration(ctx)
|
||||
})
|
||||
|
||||
app.Run(iris.Addr(":8080"), iris.WithoutServerError(iris.ErrServerClosed), iris.WithoutVersionChecker)
|
||||
app.Run(iris.Addr(":8080"))
|
||||
}
|
||||
|
|
|
@ -369,7 +369,7 @@ func (s *Session) set(key string, value interface{}, immutable bool) {
|
|||
syncDatabases(s.provider.databases, p)
|
||||
}
|
||||
|
||||
// Set fills the session with an entry"value", based on its "key".
|
||||
// Set fills the session with an entry "value", based on its "key".
|
||||
func (s *Session) Set(key string, value interface{}) {
|
||||
s.set(key, value, false)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user