1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-19 19:07:06 +00:00

modify the targeted test for gorilla/securecookie integration with iris session manager 🍥

Former-commit-id: a8a499c149e4a31f2b475f64e8ff93799608819c
This commit is contained in:
hiveminded
2017-07-11 18:09:32 +03:00
parent d0a66c2fbc
commit bd61bf2405
2 changed files with 19 additions and 92 deletions

View File

@@ -14,7 +14,7 @@ import (
"github.com/gorilla/securecookie"
)
func main() {
func newApp() *iris.Application {
app := iris.New()
cookieName := "mycustomsessionid"
@@ -71,5 +71,10 @@ func main() {
// mySessions.DestroyByID
// mySessions.DestroyAll
return app
}
func main() {
app := newApp()
app.Run(iris.Addr(":8080"))
}