e822642c by Pengfei Xue

fix bug, can not remove session file

1 parent a38a4f03
...@@ -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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!