97b68bdd by Pengfei Xue Committed by asta.xie

fix bug, can not remove session file

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