parent
d40595cacb
commit
215c630ba0
3 changed files with 10 additions and 4 deletions
|
@ -17,6 +17,6 @@ type Session struct {
|
|||
}
|
||||
|
||||
func (session *Session) IsExpired() bool {
|
||||
// TODO
|
||||
return false
|
||||
expires := session.Created.Add(12 * time.Hour) // 12 hours sessions
|
||||
return time.Now().After(expires)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue