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:
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user