mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
minor
This commit is contained in:
@@ -41,6 +41,15 @@ func withCookieOptions(ctx iris.Context) {
|
||||
// * CookieExpires
|
||||
// * CookieEncoding
|
||||
ctx.AddCookieOptions(iris.CookieAllowReclaim())
|
||||
// ctx.AddCookieOptions(iris.CookieSecure)
|
||||
// OR for a specific cookie:
|
||||
// ctx.SetCookieKV("cookie_name", "cookie_value", iris.CookieScure)
|
||||
// OR by passing a a &http.Cookie:
|
||||
// ctx.SetCookie(&http.Cookie{
|
||||
// Name: "cookie_name",
|
||||
// Value: "cookie_value",
|
||||
// Secure: true,
|
||||
// })
|
||||
ctx.Next()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user