1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 18:50:55 +00:00

add sessionId prefix

This commit is contained in:
SongLiang 2018-10-29 12:18:06 +08:00 committed by GitHub
parent 187add9b84
commit abc8b78065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,7 +334,7 @@ func (manager *Manager) sessionID() (string, error) {
} }
sid := hex.EncodeToString(b) sid := hex.EncodeToString(b)
if manager.config.SessionIDPrefix != "" { if manager.config.SessionIDPrefix != "" {
sid = manager.config.SessionIDPrefix + sid return manager.config.SessionIDPrefix + sid
} }
return sid, nil return sid, nil
} }