mirror of
https://github.com/kataras/iris.git
synced 2026-01-07 20:17:05 +00:00
Update to 8.2.6 | More on Iris Controllers: optional EndRequest. Read HISTORY.md
Former-commit-id: 5255ca5c4a898e2f3e7388f3af0457599e65f87f
This commit is contained in:
@@ -143,10 +143,10 @@ func (p *provider) Init(sid string, expires time.Duration) *Session {
|
||||
return newSession
|
||||
}
|
||||
|
||||
// UpdateExpiraton update expire date of a session.
|
||||
// UpdateExpiration update expire date of a session.
|
||||
// if expires > 0 then it updates the destroy task.
|
||||
// if expires <=0 then it does nothing, to destroy a session call the `Destroy` func instead.
|
||||
func (p *provider) UpdateExpiraton(sid string, expires time.Duration) bool {
|
||||
func (p *provider) UpdateExpiration(sid string, expires time.Duration) bool {
|
||||
if expires <= 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user