Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Feb 15, 2024
1 parent 271dfe6 commit 1a85a64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions application/library/config/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func InitSessionOptions(c *Config) {
Path: c.Cookie.Path,
MaxAge: c.Cookie.MaxAge,
HttpOnly: c.Cookie.HttpOnly,
SameSite: c.Cookie.SameSite,
}
if CookieOptions == nil || SessionOptions == nil ||
!reflect.DeepEqual(_cookieOptions, CookieOptions) ||
Expand Down
1 change: 1 addition & 0 deletions application/library/config/subconfig/scookie/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ type Config struct {
Path string `json:"path"`
Prefix string `json:"prefix"`
HttpOnly bool `json:"httpOnly"`
SameSite string `json:"sameSite"` // strict / lax / none
HashKey string `json:"hashKey"`
BlockKey string `json:"blockKey"`
}

0 comments on commit 1a85a64

Please sign in to comment.