mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
formatting
Former-commit-id: 037081db5d6d4434e873ca8b75334ee43e046b6a
This commit is contained in:
@@ -42,10 +42,10 @@ func main() {
|
||||
})
|
||||
app.Get("/set", func(ctx iris.Context) {
|
||||
s := sess.Start(ctx)
|
||||
//set session values
|
||||
// set session values
|
||||
s.Set("name", "iris")
|
||||
|
||||
//test if set here
|
||||
// test if set here
|
||||
ctx.Writef("All ok session value of the 'name' is: %s", s.GetString("name"))
|
||||
})
|
||||
|
||||
@@ -84,7 +84,7 @@ func main() {
|
||||
})
|
||||
|
||||
app.Get("/destroy", func(ctx iris.Context) {
|
||||
//destroy, removes the entire session data and cookie
|
||||
// destroy, removes the entire session data and cookie
|
||||
sess.Destroy(ctx)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user