fix bug, can not remove session file
Showing
1 changed file
with
1 additions
and
2 deletions
| ... | @@ -152,8 +152,7 @@ func (fp *FileProvider) SessionExist(sid string) bool { | ... | @@ -152,8 +152,7 @@ func (fp *FileProvider) SessionExist(sid string) bool { |
| 152 | func (fp *FileProvider) SessionDestroy(sid string) error { | 152 | func (fp *FileProvider) SessionDestroy(sid string) error { |
| 153 | filepder.lock.Lock() | 153 | filepder.lock.Lock() |
| 154 | defer filepder.lock.Unlock() | 154 | defer filepder.lock.Unlock() |
| 155 | 155 | os.Remove(path.Join(fp.savePath, string(sid[0]), string(sid[1]), sid)) | |
| 156 | os.Remove(path.Join(fp.savePath)) | ||
| 157 | return nil | 156 | return nil |
| 158 | } | 157 | } |
| 159 | 158 | ... | ... |
-
Please register or sign in to post a comment