summaryrefslogtreecommitdiff
path: root/sessions.go
diff options
context:
space:
mode:
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...)
}