Skip to main content

Zope session management.

Project description

https://github.com/zopefoundation/Products.Sessions/actions/workflows/tests.yml/badge.svg https://coveralls.io/repos/github/zopefoundation/Products.Sessions/badge.svg?branch=master Current version on PyPI 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:

<zodb_db temporary>
    <temporarystorage>
      name Temporary database (for sessions)
    </temporarystorage>
    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.

Changelog

4.12 (2021-08-09)

  • Fix PY2 bug in BrowserIdManager.getNewBrowserId (#45)

4.11 (2021-07-07)

  • 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)

4.10 (2021-07-02)

  • Reduce usage of deprecated tempstorage for testing and remove warnings (#41)

4.9 (2021-03-16)

  • Add support for Python 3.9

4.8 (2020-08-21)

  • Don’t break completely when no session data container is available (#35)

4.7 (2020-08-07)

  • Make the product compatible with transaction version 3 (#32)

4.6 (2019-10-12)

  • Banish dependency on Products.TemporaryFolder into a tests extra and point out its issues under Zope 4 in the README. (#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)

  • Fix Python 3 compatibility of _p_resolveConflict. (#25)

4.5 (2019-04-15)

  • add badges to the README

  • add additional links on PyPI

4.4 (2019-03-28)

  • improve flake8 compliance

  • Implement __contains__ on TransientObject (#21)

  • Fix session data manager edit form

4.3.2 (2019-03-07)

  • Fix NameError in Products/Transience/Transience.py introduced in version 4.3.

4.3.1 (2019-03-07)

  • Fix HTML of manageDataManager.dtml. (#22)

4.3 (2019-02-17)

  • Specify supported Python versions using python_requires in setup.py (Zope#481)

  • Add support for Python 3.8

4.2.1 (2018-11-30)

  • Make sure TransientObjectContainer.getTimeoutMinutes returns ints. (#17)

  • Add tox-based testing for unit tests, code coverage and linting.

  • Fix ZMI layout. (#19)

4.2 (2018-11-06)

  • Update the forms to Bootstrap ZMI. (#8)

  • Add support for Python 3.7.

4.1 (2018-06-06)

  • 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.

4.0 (2016-07-23)

  • Released as separate distribution including the code. This release requires Zope >= 4.0.

3.0 (2016-08-01)

  • Create a separate distribution called Products.Sessions without any code inside it. This allows projects to depend on this project inside the Zope 2.13 release line.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Products.Sessions-4.12.tar.gz (56.7 kB view details)

Uploaded Source

Built Distribution

Products.Sessions-4.12-py2.py3-none-any.whl (72.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file Products.Sessions-4.12.tar.gz.

File metadata

  • Download URL: Products.Sessions-4.12.tar.gz
  • Upload date:
  • Size: 56.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5

File hashes

Hashes for Products.Sessions-4.12.tar.gz
Algorithm Hash digest
SHA256 0d5ec35a42df1aa437fd56a411d2fc9fec755a17f03d461da4cdcf7ebff397af
MD5 8072dde6a2bde4c95aa5766775a47f22
BLAKE2b-256 8991c987057bade1fce728073834ba91d3400963c19f340f87341812ebd4daa7

See more details on using hashes here.

File details

Details for the file Products.Sessions-4.12-py2.py3-none-any.whl.

File metadata

  • Download URL: Products.Sessions-4.12-py2.py3-none-any.whl
  • Upload date:
  • Size: 72.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.5

File hashes

Hashes for Products.Sessions-4.12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6f1f3bfeddd6af6685fb993eca716714411d7c5dd1ef53aa7793ca3b41624f33
MD5 bffde0f23d53513b56b87a4234d54011
BLAKE2b-256 03e98c78ee96bea6a4289a2af36466f2557f389e7beb004629b5bd39e7dd5ebf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page