sanic-session icon indicating copy to clipboard operation
sanic-session copied to clipboard

Provides server-backed sessions for Sanic using Redis, Memcache and more.

Results 12 sanic-session issues
Sort by recently updated
recently updated
newest added

use the aioredis demo: https://sanic-session.readthedocs.io/en/latest/using_the_interfaces.html#redis-aioredis and response header always has set-cookie, even use same session // event comment out `foo +=1` Is this normal? // use set-cookie only when cookie...

https://github.com/ahopkins/sanic-session/blob/551de4b503ab1a595b3b2b07cbe08806508a043e/sanic_session/base.py#L164-L169 Hello, I was reading your code and stumbled upon the linked code lines. There I don't understand why **line 167** doesn't throw an error. Because if `if not req[self.session_name]`...

https://github.com/ahopkins/sanic-session/issues/92

Fix for #95 aioredis was merged into redis https://github.com/redis/redis-py/releases/tag/v4.2.0rc1

Please update frequently for new Sanic. **Need Sqlite support.**

According to https://github.com/aio-libs/aioredis-py (which is now archived due to the merge): > Aioredis is now in redis-py 4.2.0rc1+ > To install, just do pip install redis>=4.2.0rc1. The code is almost...

Currently, it is not possible to store objects inside a session containing UUID, datetimes, date, and time values. Substituting ujson for orjson would fix this. Maybe a configuration of the...

In sanic 22.12.0 they changed the internal structure of app's middleware collections (_request_middleware_, _response_middleware_) Look at this commit: https://github.com/sanic-org/sanic/commit/2abe66b67086d398d58cd754cf5b158b812acebb Now they don't store pure middleware functions there but instead they...

Adds support for integration with Sanic Extensions: ```python Extend.register(Session) ``` ```python class Redis: ... redis = Redis() Extend.register(Session(interface=RedisSessionInterface(redis.get_redis_pool))) ```

Closes #85 @yurenchen000 This PR implements your change. However, it also adds a renewal policy so that: 1. it is possible to retain the existing behavior 2. there is flexibility...