Repository URL to install this package:
|
Version:
1.6.3 ▾
|
pyramid_session_redis
/
CHANGES.md
|
|---|
unreleased
2021.11.16
2021.08.10
redis_ namespace. thank you, @natej:
2021.04.01
expires default. thank you, @olemoign2021.03.30
.compat now the source for various importsSession.adjust_cookie_expires(expires)Session.adjust_cookie_max_age(max_age)adjust_expires_for_session to adjust_session_expires
adjust_timeout_for_session to adjust_session_timeout
2020.10.20
2019.12.17
2019.09.20
same_site cookiesutils, still accessable for now.session_id signed serialization.
this was provided by the deprecated functions pyramid.session.signed_serialize
and pyramid.session.signed_deserialize, which are removed in Pyramid 1.10.0+ and
are considered to be a security vulnerability. using these functions allows
a malevolent actor to submit a malicious payload that could cause a security
issue. This functionality is now handled by constructing a
webob.cookies.SignedSerializer() (which uses JSON (de)serializtion) based on the
provided secret, and using a _NullSerializer to encode the session_id
(only a string session_id is stored in the cookie, so we just need to let the inpu
string pass through). If desired, a devloper can provide a cookie_signer
object instance to customize this functionality.pyramid_session_redis.legacy - tools to deal with upcoming Pyramid API
changes (see issue #19)pyramid_session_redis.legacy.LegacyCookieSerializer - implementation
of Pyramid 1.x > 1.10 signed cookie via the deprecated signed_serialize
and signed_deserialize functions. these functions have been copied from
pyramid and made available through an interface that is compatable with
the Pyramid 1.10/2.x decision to use webob.cookies.SignedSerializer. this
is only provided for migration and should not be used as it risks security
issues.pyramid_session_redis.legacy.GracefulCookieSerializer - a serialzer
that can temporarily replace the new usage of SignedSerializer by allowing
a fallback to the legacy signed_serialize/signed_deserialize functions.
This serializer allows for logging of serialization attempts and tracking
the progress of migrating your userbase. this
is only provided for migration and should not be used as it risks security
issues.2019.06.27
2017.10.17
None (issue #12, forked from #11)pyramid_session_redis._finished_callback into RedisSession._deferred_callbackset_redis_ttl_readheavy option for read-intensive deployments2017.10.17
2017.10.17
util.get_unique_session_id to util.create_unique_session_idutil.empty_session_payloadfunc_invalid_logger to session factory, also renamed internal exceptions. they were not a public api so there is no deprecation issue.Unreleased
2017.01.24
force_redis_ttl kwarg to RedisSession.do_refreshset_redis_ttl deprecating it's inverse: assume_redis_lru. the assume_redis_lru kwarg will be supported until the 1.4.0 release.use_int_time as session factory arg. this will cast the created time to int(math.ceil(time)), saving some space2017.01.17
2016.12.23
2016.11.10
2016.11.10
Cookiefunc_check_response_allow_cookies(response) a callable which can disable setting the cookie.2016.11.09 renamed to pyramid_session_redis
2016.08.15
deserialized_fails_new to handle deserialization errors2016.08.12
2016.06.16
persist from being "on demand" into a single callback via pyramid's add_finished_callbackrefresh from being "on demand" into a single callback via pyramid's add_finished_callbacksession from being a particular named attribute on the "request".EXISTS. Instead of "If EXISTS then GET", we simply GET the active session and create a new one if it does not exist.LEGACY CHANGELOG