mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
README: add 'run in the browser' button
after the quick start details, so it is visible always Former-commit-id: 0c13135a01c2b883aa4a9629a507aaf622d22ade
This commit is contained in:
@@ -24,6 +24,17 @@ func main() {
|
||||
DisableSubdomainPersistence: false,
|
||||
// Allow getting the session value stored by the request from the same request.
|
||||
AllowReclaim: true,
|
||||
/*
|
||||
SessionIDGenerator: func(ctx iris.Context) string {
|
||||
id:= ctx.GetHeader("X-Session-Id")
|
||||
if id == "" {
|
||||
id = // [generate ID here and set the header]
|
||||
ctx.Header("X-Session-Id", id)
|
||||
}
|
||||
|
||||
return id
|
||||
},
|
||||
*/
|
||||
})
|
||||
|
||||
app := example.NewApp(sess)
|
||||
|
||||
Reference in New Issue
Block a user