From f842e68067cb79c8c997d4608636384b26a32e40 Mon Sep 17 00:00:00 2001 From: Patrick Huck Date: Mon, 4 Jan 2021 04:35:33 -0800 Subject: [PATCH] feat(session) allow session to be retrieved by session_id (#30) --- kong/plugins/session/daos.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/kong/plugins/session/daos.lua b/kong/plugins/session/daos.lua index 4348f83d0a6b..2750d68229d7 100644 --- a/kong/plugins/session/daos.lua +++ b/kong/plugins/session/daos.lua @@ -3,6 +3,7 @@ local typedefs = require "kong.db.schema.typedefs" return { sessions = { primary_key = { "id" }, + endpoint_key = "session_id", name = "sessions", cache_key = { "session_id" }, ttl = true,