mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 17:30:50 +00:00
add sessionId prefix
This commit is contained in:
parent
187add9b84
commit
abc8b78065
@ -334,7 +334,7 @@ func (manager *Manager) sessionID() (string, error) {
|
||||
}
|
||||
sid := hex.EncodeToString(b)
|
||||
if manager.config.SessionIDPrefix != "" {
|
||||
sid = manager.config.SessionIDPrefix + sid
|
||||
return manager.config.SessionIDPrefix + sid
|
||||
}
|
||||
return sid, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user