Unverified Commit 501d8a97 authored by SongLiang's avatar SongLiang Committed by GitHub

add sessionId prefix

parent d3ad810f
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment