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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user