https://github.com/zopefoundation/products.sessions
Zope session management.
https://github.com/zopefoundation/products.sessions
maintained
Last synced: 8 months ago
JSON representation
Zope session management.
- Host: GitHub
- URL: https://github.com/zopefoundation/products.sessions
- Owner: zopefoundation
- License: other
- Created: 2016-07-23T14:16:49.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2025-04-05T07:12:59.000Z (about 1 year ago)
- Last Synced: 2025-09-29T03:06:57.798Z (8 months ago)
- Topics: maintained
- Language: Python
- Homepage:
- Size: 398 KB
- Stars: 3
- Watchers: 68
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
.. 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
Overview
========
Zope server side session management.
This package contains ``Products.Sessions`` and ``Products.Transience``.
Please note
-----------
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.
Using sessions with Zope
------------------------
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::
name Temporary database (for sessions)
mount-point /temp_folder
container-class Products.TemporaryFolder.TemporaryContainer
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
`_.