Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.5 KB

CHANGELOG.md

File metadata and controls

36 lines (26 loc) · 1.5 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[6.0.0] - 2022-12-04

Changes

  • Require PHP 8.0+
  • Make session settings "immutable".
  • Move all session settings to the PhpSession constructor.
  • Provide interfaces for each concern (management and session data).
  • Change SessionInterface to handle session data operations only, e.g. get, set.
  • Rename session method replace to setValues.
  • Rename session method remove to delete.
  • Calling the session save method is now optional.
  • Rename class Odan\Session\Middleware\SessionMiddleware to Odan\Session\Middleware\SessionStartMiddleware.

Added

  • Add SessionManagerInterface to handle session operations, such as start, save, destroy, getName, etc.
  • Add default parameter to session get method.

Removed

  • Remove session method setOptions and getOptions. Pass all settings into PhpSession constructor instead.
  • Remove session method setCookieParams and getCookieParams. The cookie parameters must be defined in the settings and will set in the session start method.
  • Remove session setName method. Use the name setting instead.
  • Remove session setId method. Use the optional id setting instead.
  • Remove session count method.
  • Remove SessionAwareInterface in favor of dependency injection.