1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

fix cookie expire equals to -1 when call UpdateExpiration

Former-commit-id: 69107db0f9be87db2057c6d261bd896c0358bc45
This commit is contained in:
Wing Gao
2017-12-15 21:46:18 +08:00
parent 434b07675e
commit 859a62bf01
3 changed files with 10 additions and 11 deletions

View File

@@ -58,7 +58,8 @@ type (
// AllowReclaim will allow to
// Destroy and Start a session in the same request handler.
// All it does is that it removes the cookie for both `Request` and `ResponseWriter`.
// All it does is that it removes the cookie for both `Request` and `ResponseWriter` while `Destroy`
// or add a new cookie to `Request` while `Start`.
//
// Defaults to false.
AllowReclaim bool