mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
session examples: add the 'AllowReclaim: true' session.Config field to true, help users like https://github.com/kataras/iris/issues/1031\#issuecomment-399894693
Former-commit-id: 2ab7e56a4fda380fb52a8912a328797ba332f2c8
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
func main() {
|
||||
app := iris.New()
|
||||
sess := sessions.New(sessions.Config{Cookie: "myappsessionid"})
|
||||
sess := sessions.New(sessions.Config{Cookie: "myappsessionid", AllowReclaim: true})
|
||||
|
||||
app.Get("/set", func(ctx iris.Context) {
|
||||
s := sess.Start(ctx)
|
||||
|
||||
Reference in New Issue
Block a user