mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 12:30:54 +00:00
Merge pull request #494 from pengfei-xue/develop
fix bug, can not remove session file
This commit is contained in:
commit
8906d3e77c
@ -143,7 +143,7 @@ func (fp *FileProvider) SessionExist(sid string) bool {
|
|||||||
|
|
||||||
// Remove all files in this save path
|
// Remove all files in this save path
|
||||||
func (fp *FileProvider) SessionDestroy(sid string) error {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user