1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-06 11:37:06 +00:00

enhanced cookie security and management

Former-commit-id: a97b0b33e87749a2e8c32e63269fcc60fa326ff3
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-05-09 14:04:51 +03:00
parent d5f1649895
commit 50b18c7515
18 changed files with 490 additions and 466 deletions

View File

@@ -2,6 +2,8 @@ package sessions
import (
"time"
"github.com/kataras/iris/v12/context"
)
// LifeTime controls the session expiration datetime.
@@ -50,7 +52,7 @@ func (lt *LifeTime) Shift(d time.Duration) {
// ExpireNow reduce the lifetime completely.
func (lt *LifeTime) ExpireNow() {
lt.Time = CookieExpireDelete
lt.Time = context.CookieExpireDelete
if lt.timer != nil {
lt.timer.Stop()
}