1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-22 04:17:03 +00:00

add Context.SetSameSite(integrates with sessions too) , iris.JSON.ASCII and iris.JSON.Secure option fields

Former-commit-id: fdf0dae234b219c9ca449ae8907d3e459d485dc7
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-04-07 19:23:30 +03:00
parent 6876f94e67
commit f03afeef2f
2 changed files with 71 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ func (s *Sessions) Start(ctx context.Context, cookieOptions ...context.CookieOpt
return s.provider.Read(cookieValue, s.config.Expires)
}
const contextSessionKey = "_iris_session"
const contextSessionKey = "iris.session"
// Handler returns a sessions middleware to register on application routes.
func (s *Sessions) Handler(cookieOptions ...context.CookieOption) context.Handler {