mirror of
https://github.com/kataras/iris.git
synced 2025-12-27 14:57:05 +00:00
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user