mirror of
https://github.com/astaxie/beego.git
synced 2025-07-27 16:35:32 +00:00
add sessionId prefix
This commit is contained in:
@@ -333,11 +333,8 @@ 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
|
||||
}
|
||||
|
||||
// Set cookie with https.
|
||||
func (manager *Manager) isSecure(req *http.Request) bool {
|
||||
|
Reference in New Issue
Block a user