diff --git a/session/session.go b/session/session.go index f33c48e7..908b7f37 100644 --- a/session/session.go +++ b/session/session.go @@ -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 }