diff --git a/session/sess_file.go b/session/sess_file.go index e8746532..7e9e2229 100644 --- a/session/sess_file.go +++ b/session/sess_file.go @@ -152,8 +152,7 @@ func (fp *FileProvider) SessionExist(sid string) bool { func (fp *FileProvider) SessionDestroy(sid string) error { filepder.lock.Lock() defer filepder.lock.Unlock() - - os.Remove(path.Join(fp.savePath)) + os.Remove(path.Join(fp.savePath, string(sid[0]), string(sid[1]), sid)) return nil }