This commit is contained in:
Hank Shen 2019-05-02 12:31:38 +08:00
parent d034976064
commit c41aec4c78

View file

@ -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()