Commit 34a65da9 authored by Alex Kalderimis's avatar Alex Kalderimis

Ensure new sessions will never be found when looking for old ones

This alters the key format for new sessions to ensure that if using the
wildcard form to look for all sessions for a user, new JSON sessions
will never be returned accidentally. This might otherwise have been the
case for users named `v2`
parent 7668b6b6
......@@ -162,7 +162,7 @@ class ActiveSession
end
def self.key_name(user_id, session_id = '*')
"#{Gitlab::Redis::Sessions::USER_SESSIONS_NAMESPACE}:v2:#{user_id}:#{session_id}"
"#{Gitlab::Redis::Sessions::USER_SESSIONS_NAMESPACE}::v2:#{user_id}:#{session_id}"
end
# Deprecated
......
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