mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
d51c0b7b50
Example: app := iris.New() app.Adapt(httprouter.New()) // IMPORTANT cookieName := "mycustomsessionid" // AES only supports key sizes of 16, 24 or 32 bytes. // You either need to provide exactly that amount or you derive the key from what you type in. hashKey := []byte("the-big-and-secret-fash-key-here") blockKey := []byte("lot-secret-of-characters-big-too") secureCookie := securecookie.New(hashKey, blockKey) app.Adapt(sessions.New(sessions.Config{ Cookie: cookieName, Encode: secureCookie.Encode, Decode: secureCookie.Decode, })) Former-commit-id: 6fe5ce6cb834d55862242e08405fad4e721caa5b |
||
---|---|---|
.. | ||
cors | ||
gorillamux | ||
httprouter | ||
sessions | ||
typescript | ||
view | ||
websocket |