Skip to content

Releases: odan/session

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

3.1.0

21 Mar 10:39
Compare
Choose a tag to compare

Added

  • Add session middleware

3.0.0

19 Mar 17:36
Compare
Choose a tag to compare

Added

  • Added all method

Breaking Changes

  • Removed PhpSecureSessionAdapter
  • Removed the default parameter of the get method. The method returns null if the key not exists. Better use the ?? operator to define default values.
  • Moved the SessionInterface to namespace Odan\Session
  • Calling setId if the session is started, a RuntimeException will be thrown
  • Replaced the Adapter (pattern) with a Interface. The Session wrapper class is not required anymore and was removed.