mirror of
https://github.com/kataras/iris.git
synced 2026-01-07 20:17:05 +00:00
Add an example for sessions + securecookie. Relative: http://support.iris-go.com/d/29-mark-cookie-for-session-as-secure
Former-commit-id: 10c30aabdf6b8fa59457ed8296b3e87108d3861c
This commit is contained in:
@@ -2,8 +2,10 @@ package iris_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
// developers can use any library to add a custom cookie encoder/decoder.
|
||||
// At this test code we use the gorilla's securecookie library:
|
||||
"github.com/gorilla/securecookie"
|
||||
|
||||
"github.com/gorilla/securecookie" // optional, to set sessions'' Encode and Decode
|
||||
"gopkg.in/kataras/iris.v6"
|
||||
"gopkg.in/kataras/iris.v6/adaptors/httprouter"
|
||||
"gopkg.in/kataras/iris.v6/adaptors/sessions"
|
||||
|
||||
Reference in New Issue
Block a user