update
This commit is contained in:
parent
d034976064
commit
c41aec4c78
1 changed files with 3 additions and 0 deletions
3
store.go
3
store.go
|
@ -220,6 +220,9 @@ func (s *FilesystemStore) Save(ctx echo.Context,
|
|||
|
||||
// delete session file
|
||||
func (s *FilesystemStore) erase(session *Session) error {
|
||||
if len(session.ID) == 0 {
|
||||
return nil
|
||||
}
|
||||
filename := filepath.Join(s.path, "session_"+session.ID)
|
||||
fileMutex.RLock()
|
||||
defer fileMutex.RUnlock()
|
||||
|
|
Loading…
Reference in a new issue