mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
Rework actix session (#212)
Co-authored-by: Rob Ede <robjtede@icloud.com> Co-authored-by: Luca P <rust@lpalmieri.com> Co-authored-by: Sebastian Rollén <38324289+SebRollen@users.noreply.github.com>
This commit is contained in:
@ -2,6 +2,23 @@
|
||||
|
||||
## Unreleased - 2021-xx-xx
|
||||
|
||||
### Added
|
||||
- `SessionMiddleware`, a middleware to provide support for saving/updating/deleting session state against a pluggable storage backend (see `SessionStore` trait) [#212]
|
||||
- `CookieSessionStore`, a cookie-based backend to store session state [#212]
|
||||
- `RedisActorSessionStore`, a Redis-based backend to store session state powered by `actix-redis` [#212]
|
||||
- `RedisSessionStore`, a Redis-based backend to store session state powered by `redis-rs` [#212]
|
||||
- Add TLS support for Redis via `RedisSessionStore` [#212]
|
||||
- Implement `SessionExt` for `ServiceResponse` [#212]
|
||||
|
||||
### Changed
|
||||
- Rename `UserSession` to `SessionExt` [#212]
|
||||
|
||||
### Removed
|
||||
- `CookieSession` has been removed in favour of `CookieSessionStore`, a storage backend for `SessionMiddleware` [#212]
|
||||
- `Session::set_session` has been removed. Use `Session::insert` to modify the session state. [#212]
|
||||
|
||||
[#212]: https://github.com/actix/actix-extras/pull/212
|
||||
|
||||
|
||||
## 0.5.0 - 2022-03-01
|
||||
- Update `actix-web` dependency to `4`.
|
||||
@ -27,7 +44,9 @@
|
||||
## 0.5.0-beta.5 - 2021-12-12
|
||||
- Update `actix-web` dependency to `4.0.0.beta-14`. [#209]
|
||||
- Remove `UserSession` implementation for `RequestHead`. [#209]
|
||||
- A session will be created in the storage backend if and only if there is some data inside the session state. This reduces the performance impact of `SessionMiddleware` on routes that do not leverage sessions. [#207]
|
||||
|
||||
[#207]: https://github.com/actix/actix-extras/pull/207
|
||||
[#209]: https://github.com/actix/actix-extras/pull/209
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user