diff options
author | Hank Shen <swhbox@foxmail.com> | 2020-06-15 11:00:32 +0300 |
---|---|---|
committer | Hank Shen <swhbox@foxmail.com> | 2020-06-15 11:00:32 +0300 |
commit | 90473594ee0f2e4dc1c06b0d47b0f98510df3c92 (patch) | |
tree | 171c801651a733c714dcfc243e0a5ef4ba4aa2a3 /sessions.go | |
parent | 903fdb004a08f8f0952487a2e329aa2373a1bd8c (diff) |
update
Diffstat (limited to 'sessions.go')
-rw-r--r-- | sessions.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sessions.go b/sessions.go index 865d952..dc65b9e 100644 --- a/sessions.go +++ b/sessions.go @@ -193,6 +193,7 @@ func NewCookie(ctx echo.Context, name, value string) *http.Cookie { } // SetCookie for echo +// @param:ctx,key,value,maxAge(seconds),path(/),domain,secure,httpOnly,sameSite(lax/strict/default) func SetCookie(ctx echo.Context, key string, value string, args ...interface{}) { ctx.SetCookie(key, value, args...) } |