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

fix bug, can not remove session file

This commit is contained in:
Pengfei Xue 2014-02-13 18:24:05 +08:00
parent a38a4f0343
commit e822642cb0

View File

@ -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
}