Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
.. image:: https://github.com/zopefoundation/Products.Sessions/actions/workflows/tests.yml/badge.svg :target: https://github.com/zopefoundation/Products.Sessions/actions/workflows/tests.yml
.. image:: https://coveralls.io/repos/github/zopefoundation/Products.Sessions/badge.svg?branch=master :target: https://coveralls.io/github/zopefoundation/Products.Sessions?branch=master
.. image:: https://img.shields.io/pypi/v/Products.Sessions.svg :target: https://pypi.org/project/Products.Sessions/ :alt: Current version on PyPI
.. image:: https://img.shields.io/pypi/pyversions/Products.Sessions.svg :target: https://pypi.org/project/Products.Sessions/ :alt: Supported Python versions
Zope server side session management.
This package contains Products.Sessions
and Products.Transience
.
Before release 5.2 of the tempstorage
package sessioning configurations
using the simple temporary folder implementation shown below were discouraged
because the temporary storage backend could lose data. This is no longer the
case.
For simple RAM memory-based sessioning support, suitable for smaller deployments with a single Zope application server instance, add or uncomment the following temporary storage database definition in your Zope configuration file::
<zodb_db temporary> name Temporary database (for sessions) mount-point /temp_folder container-class Products.TemporaryFolder.TemporaryContainer </zodb_db>
After a Zope restart, visit the Zope Management Interface and select
ZODB Mount Point from the list of addable items to instantiate the temporary
folder mount point. This only needs to be done once. After that point the
temp_folder
object will be recreated on each Zope restart and the session
support will automatically put a session data container into the temporary
folder.
For more advanced scenarios see the Zope book chapter on Session management <https://zope.readthedocs.io/en/latest/zopebook/Sessions.html#alternative-server-side-session-backends-for-zope-4>
_.
Add support for Python 3.12.
Fix the browser ID manager cookie setting for Availability. The name of the cookie flag ws incorrect so it was always False.
Drop support for Python 2.7, 3.5, 3.6.
Fix insidious buildout configuration bug for tests against Zope 4.
Add support for Python 3.11.
SameSite
flag.
See https://hacks.mozilla.org/2020/08/changes-to-samesite-cookie-behavior/
for some background on how browsers change handling SameSite
.
The behavior of existing sites will not change unless the site administrator
changes the cookie configuration explicitly. New browser id managers will use
Lax
by default.BrowserIdManager.getNewBrowserId
(#45 <https://github.com/zopefoundation/Products.Sessions/issues/45>
_)Improve out-of-the-box experience by instantiating a session data container if the session data manager uses the default configuration that points to a temporary folder
Reinstate simple sessioning with Products.TemporaryFolder
(#43 <https://github.com/zopefoundation/Products.Sessions/issues/43>
_)
tempstorage
for testing and remove warnings
(#41 <https://github.com/zopefoundation/Products.Sessions/issues/41>
_)#35 <https://github.com/zopefoundation/Products.Sessions/issues/35>
_)transaction
version 3
(#32 <https://github.com/zopefoundation/Products.Sessions/issues/32>
_)Banish dependency on Products.TemporaryFolder
into a tests extra
and point out its issues under Zope 4 in the README.
(#26 <https://github.com/zopefoundation/Products.Sessions/issues/26>
_)
Switch tests dependencies to Zope 4.x branch to retain Python 2 compatibility
Fix access permissions for meta_type
and zmi_icon
properties so
they don't raise when accessed in the admin interface.
(#24 <https://github.com/zopefoundation/Products.Sessions/pull/24>
_)
Fix Python 3 compatibility of _p_resolveConflict
.
(#25 <https://github.com/zopefoundation/Products.Sessions/pull/25>
_)
add badges to the README
add additional links on PyPI
improve flake8 compliance
Implement __contains__
on TransientObject
(#21 <https://github.com/zopefoundation/Products.Sessions/issues/21>
_)
Fix session data manager edit form
NameError
in Products/Transience/Transience.py
introduced in
version 4.3.manageDataManager.dtml
.
(#22 <https://github.com/zopefoundation/Products.Sessions/pull/22>
_)Specify supported Python versions using python_requires
in setup.py
(Zope#481 <https://github.com/zopefoundation/Zope/issues/481>
_)
Add support for Python 3.8
Make sure TransientObjectContainer.getTimeoutMinutes
returns ints.
(#17 <https://github.com/zopefoundation/Products.Sessions/issues/17>
_)
Add tox
-based testing for unit tests, code coverage and linting.
Fix ZMI layout.
(#19 <https://github.com/zopefoundation/Products.Sessions/pull/19>
_)
Update the forms to Bootstrap ZMI.
(#8 <https://github.com/zopefoundation/Products.Sessions/pull/8>
_)
Add support for Python 3.7.
Add support for Python 3.5 and 3.6.
Quote variables in Products.Transience manage_container to avoid XSS. From Products.PloneHotfix20160830.
Bring back Application initialization (creation of BrowserIdManager and SessionDataManager in the ZODB on first startup). This requires Zope >= 4.0b5.
Products.Sessions
without
any code inside it. This allows projects to depend on this project
inside the Zope 2.13 release line.FAQs
Zope session management.
We found that Products.Sessions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.