Skip to content

Commit

Permalink
refactor(middleware/session): Update session middleware for v3 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sixcolors committed Sep 19, 2024
1 parent e272082 commit b262a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/whats_new.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit b262a08

Please sign in to comment.