1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-26 01:21:28 +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 { func (fp *FileProvider) SessionDestroy(sid string) error {
filepder.lock.Lock() filepder.lock.Lock()
defer filepder.lock.Unlock() defer filepder.lock.Unlock()
os.Remove(path.Join(fp.savePath, string(sid[0]), string(sid[1]), sid))
os.Remove(path.Join(fp.savePath))
return nil return nil
} }