Skip to content

Releases: odan/session

6.3.0

15 Dec 13:25
Compare
Choose a tag to compare

Added

  • Add support for PHP 8.4

Full Changelog: 6.2.0...6.3.0

6.2.0

20 Sep 17:33
Compare
Choose a tag to compare

Added

  • Add support for PHP 8.3
  • Add support for psr/http-message 2.x

Changes

  • Upgrade tests to PHPUnit 11

Removed

  • Drop support for PHP 8.0 and PHP 8.1

6.1.0

22 Jan 11:02
Compare
Choose a tag to compare

Added

  • Add has method to SessionInterface #30 #29
  • Add PHP 8.2 to build pipeline

Changed

  • Update docs

6.0.0

04 Dec 11:17
Compare
Choose a tag to compare

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.

Changelog: https://github.com/odan/session/blob/master/CHANGELOG.md#600---2022-12-04

5.1.0

23 Dec 18:13
Compare
Choose a tag to compare

Added

  • Add PHP 8.0 support #14

Fixed

  • Fix getId and getName type casting

4.1.0

23 Dec 18:12
Compare
Choose a tag to compare

Added

  • Add PHP 8.0 support #14

5.0.0

06 Aug 12:41
Compare
Choose a tag to compare

Changes

  • All classes are “final” by default. So extending will not be possible anymore.
  • Removed SessionDoublePassMiddleware
  • Moved SessionMiddleware into its own namespace: Odan\Session\Middleware
  • New SessionInterface
  • Throw SessionException instead of returning false for error

Added

  • Added flash massages
  • Added SessionException
  • Added new documentation for v4 and v5

All Details: #7

Documentation: https://odan.github.io/session/v5/

4.0.0

18 Jul 21:00
Compare
Choose a tag to compare

Breaking Canges

  • Renamed SessionMiddleware to SessionDoublePassMiddleware

Deprecated

  • Deprecated SessionDoublePassMiddleware

Added

  • Added PSR-15 middleware #5
  • Added documentation and examples to readme

3.3.0

05 May 11:15
Compare
Choose a tag to compare
  • Minor build and code style improvements

3.2.0

09 Apr 11:20
e2689ed
Compare
Choose a tag to compare

Changes

  • Middleware improvement #3