aboutsummaryrefslogtreecommitdiff
path: root/sessions.go
diff options
context:
space:
mode:
authorHank Shen <swhbox@foxmail.com>2020-06-15 11:00:32 +0300
committerHank Shen <swhbox@foxmail.com>2020-06-15 11:00:32 +0300
commit90473594ee0f2e4dc1c06b0d47b0f98510df3c92 (patch)
tree171c801651a733c714dcfc243e0a5ef4ba4aa2a3 /sessions.go
parent903fdb004a08f8f0952487a2e329aa2373a1bd8c (diff)
update
Diffstat (limited to 'sessions.go')
-rw-r--r--sessions.go1
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...)
}