fix bug, can not remove session file
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -143,7 +143,7 @@ func (fp *FileProvider) SessionExist(sid string) bool { | ... | @@ -143,7 +143,7 @@ func (fp *FileProvider) SessionExist(sid string) bool { |
| 143 | 143 | ||
| 144 | // Remove all files in this save path | 144 | // Remove all files in this save path |
| 145 | func (fp *FileProvider) SessionDestroy(sid string) error { | 145 | func (fp *FileProvider) SessionDestroy(sid string) error { |
| 146 | os.Remove(path.Join(fp.savePath)) | 146 | os.Remove(path.Join(fp.savePath, string(sid[0]), string(sid[1]), sid)) |
| 147 | return nil | 147 | return nil |
| 148 | } | 148 | } |
| 149 | 149 | ... | ... |
-
Please register or sign in to post a comment