From b262a082a69b6788a6a5f9ec21729eaf1f1cd830 Mon Sep 17 00:00:00 2001 From: Jason McNeil Date: Thu, 19 Sep 2024 13:37:19 -0300 Subject: [PATCH] refactor(middleware/session): Update session middleware for v3 changes --- docs/whats_new.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/whats_new.md b/docs/whats_new.md index b51288b4ab..4cb6b20b18 100644 --- a/docs/whats_new.md +++ b/docs/whats_new.md @@ -314,9 +314,9 @@ Added support for specifying Key length when using `encryptcookie.GenerateKey(le ### Session -The Session middleware has undergone key changes in v3 to improve functionality and flexibility. While v2 methods remain available for backward compatibility, we now recommend using the new middleware handler for session management. +The Session middleware has undergone key changes in v3 to improve functionality and flexibility. While v2 methods remain available for backward compatibility, we now recommend using the new middleware handler for session management. -#### Key Updates: +#### Key Updates - **New Middleware Handler**: The `New` function now returns a middleware handler instead of a `*Store`. To access the session store, use the `Store` method on the middleware, or opt for `NewWithStore` for custom store integration.