From d3ad810f16a4599f8fffdb9ebf692bf119ab85b4 Mon Sep 17 00:00:00 2001 From: SongLiang <462039091@qq.com> Date: Mon, 29 Oct 2018 13:35:31 +0800 Subject: [PATCH] add sessionId prefix --- session/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session/session.go b/session/session.go index 908b7f37..af8c47bc 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 != "" { - return manager.config.SessionIDPrefix + sid + return manager.config.SessionIDPrefix + sid, nil } return sid, nil }