mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 08:00:18 +00:00
add go simple support
This commit is contained in:
@ -163,10 +163,7 @@ func (fp *FileProvider) SessionExist(sid string) bool {
|
||||
defer filepder.lock.Unlock()
|
||||
|
||||
_, err := os.Stat(path.Join(fp.savePath, string(sid[0]), string(sid[1]), sid))
|
||||
if err == nil {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return err == nil
|
||||
}
|
||||
|
||||
// SessionDestroy Remove all files in this save path
|
||||
|
Reference in New Issue
Block a user