mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 22:20:50 +00:00
fix bug, can not remove session file
This commit is contained in:
parent
c358c18018
commit
97b68bdd66
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user