We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15886ce commit 3ce46a7Copy full SHA for 3ce46a7
models/session.go
@@ -117,6 +117,6 @@ func CountSessions() (int64, error) {
117
118
// CleanupSessions cleans up expired sessions
119
func CleanupSessions(maxLifetime int64) error {
120
- _, err := x.Where("created_unix <= ?", timeutil.TimeStampNow().Add(-maxLifetime)).Delete(&Session{})
+ _, err := x.Where("expiry <= ?", timeutil.TimeStampNow().Add(-maxLifetime)).Delete(&Session{})
121
return err
122
}
0 commit comments