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