Fixed session expiration

This commit is contained in:
Florian Sylvain
2022-10-21 10:17:47 +02:00
parent 1d474d7920
commit 85258c985c
2 changed files with 5 additions and 3 deletions
-2
View File
@@ -43,9 +43,7 @@ func removeSession(user User) {
break
}
}
fmt.Println(SESSIONS)
SESSIONS[index] = SESSIONS[sessLen-1]
SESSIONS[sessLen-1] = Session{}
SESSIONS = SESSIONS[:sessLen-1]
fmt.Println(SESSIONS)
}