1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 11:20:56 +00:00

fix bug, can not remove session file

This commit is contained in:
Pengfei Xue 2014-02-13 18:24:05 +08:00 committed by asta.xie
parent c358c18018
commit 97b68bdd66

View File

@ -152,8 +152,7 @@ func (fp *FileProvider) SessionExist(sid string) bool {
func (fp *FileProvider) SessionDestroy(sid string) error {
filepder.lock.Lock()
defer filepder.lock.Unlock()
os.Remove(path.Join(fp.savePath))
os.Remove(path.Join(fp.savePath, string(sid[0]), string(sid[1]), sid))
return nil
}