mirror of
https://github.com/astaxie/beego.git
synced 2025-06-12 11:10:40 +00:00
add sessionId prefix
This commit is contained in:
@ -333,10 +333,7 @@ func (manager *Manager) sessionID() (string, error) {
|
||||
return "", fmt.Errorf("Could not successfully read from the system CSPRNG")
|
||||
}
|
||||
sid := hex.EncodeToString(b)
|
||||
if manager.config.SessionIDPrefix != "" {
|
||||
return manager.config.SessionIDPrefix + sid, nil
|
||||
}
|
||||
return sid, nil
|
||||
return manager.config.SessionIDPrefix + sid, nil
|
||||
}
|
||||
|
||||
// Set cookie with https.
|
||||
|
Reference in New Issue
Block a user