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
1 changed files with 1 additions and 2 deletions

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
}