starsessions
starsessions copied to clipboard
Advanced sessions for Starlette and FastAPI frameworks
What I'd like to see in the next release: 1. automatic session loading (probably via `loop.run_until_complete`) 2. move serializers to middleware (now they are in backends) 3. require explicit backend...
Fixes #55 it was not too complicate, imho it's cool to swap an unmaintained dependency to a more "official" one, see this message in the readme https://github.com/aio-libs/aioredis-py > Aioredis is...
Hi @alex-oleshkevich I just realize we depend on aioredis, it's been a while since I tracked the "complicate" state of redis pythoin libraries but it seemed to me that this...
Whether the `cookie_https_only` initializer is set to `True` or `False`, `self.security_flags` always had `httponly;` in it. For testing, I'd like to turn off `httponly`. ``` File: starsessions\middleware.py 58: self.security_flags =...
Line 93 says `no matter whether it was initially empty`, but lines 88 through 91 seem to have already dealt with the "initially empty" case without removing the cookie or...
In building a custom store, I got curious about how the `exists` method was used, but couldn't find any code in the package actually calling it. Is it used?
Currently, Redis backend has some issues during logout, with concurrent requests. If the browser has two tabs opened to the applications, on the first tab the user "logout" (let's call...
`get_session_remaining_seconds()` should return `last_update + lifetime - now` instead of `created + lifetime - now`.
Like Django, we can use the function set_expiry to set the lifetime for the session. It will be helpful when we implement the remember_me function. Thanks in advance.