1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-27 14:57:05 +00:00
Gerasimos (Makis) Maropoulos
2022-08-14 23:59:07 +03:00
parent f91269130e
commit 5e0bea8112
2 changed files with 5 additions and 4 deletions

View File

@@ -267,7 +267,8 @@ func (db *Database) Delete(sid string, key string) (deleted bool) {
// Clear removes all session key values but it keeps the session entry.
func (db *Database) Clear(sid string) error {
keys := db.keys(db.makeSID(sid))
sid = db.makeSID(sid)
keys := db.keys(sid)
for _, key := range keys {
if key == SessionIDKey {
continue