mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 17:40:48 +00:00
Make sure expiry time is in seconds
This commit is contained in:
parent
7267f5e573
commit
813a4df3c5
@ -224,7 +224,7 @@ func (rp *Provider) SessionRegenerate(oldsid, sid string) (session.Store, error)
|
||||
c.Do(c.Context(), "SET", sid, "", "EX", rp.maxlifetime)
|
||||
} else {
|
||||
c.Rename(oldsid, sid)
|
||||
c.Expire(sid, time.Duration(rp.maxlifetime))
|
||||
c.Expire(sid, time.Duration(rp.maxlifetime) * time.Second)
|
||||
}
|
||||
return rp.SessionRead(sid)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user