Commit e822642c authored by Pengfei Xue's avatar Pengfei Xue

fix bug, can not remove session file

parent a38a4f03
......@@ -143,7 +143,7 @@ func (fp *FileProvider) SessionExist(sid string) bool {
// Remove all files in this save path
func (fp *FileProvider) SessionDestroy(sid string) error {
os.Remove(path.Join(fp.savePath))
os.Remove(path.Join(fp.savePath, string(sid[0]), string(sid[1]), sid))
return nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment