From 962fa95f7cb373337c35fd0f8574e277797e6c33 Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Sat, 24 Oct 2026 00:47:39 +0200 Subject: [PATCH] fix(session): enable JSON serialization for Valkey sessions - Set SESSION_REDIS_JSON for the Redis-backed session configuration. - Match session serialization to the client's decoded string responses. - Leave the fallback session backend unchanged. --- my_modules/app/setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/my_modules/app/setup.py b/my_modules/app/setup.py index 1ec081b..b9d0208 100644 --- a/my_modules/app/setup.py +++ b/my_modules/app/setup.py @@ -61,6 +61,7 @@ if os.getenv("VALKEY_HOST", None) is not None: db=os.getenv('VALKEY_DB', 0), decode_responses=True, ), + SESSION_REDIS_JSON=True, ) else: app.config.from_mapping(