1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-10 08:40:17 +00:00

not just export a variable

This commit is contained in:
youngsterxyf
2016-03-25 10:48:59 +08:00
parent 3300db832b
commit 56860d1fea
4 changed files with 10 additions and 14 deletions

View File

@ -88,8 +88,10 @@ func (fs *FileSessionStore) SessionRelease(w http.ResponseWriter) {
var f *os.File
if err == nil {
f, err = os.OpenFile(path.Join(filepder.savePath, string(fs.sid[0]), string(fs.sid[1]), fs.sid), os.O_RDWR, 0777)
SLogger.Println(err)
} else if os.IsNotExist(err) {
f, err = os.Create(path.Join(filepder.savePath, string(fs.sid[0]), string(fs.sid[1]), fs.sid))
SLogger.Println(err)
} else {
return
}