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:
parent
c358c18018
commit
97b68bdd66
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user