session

A middleware oriented session handler for PHP and Slim 4+

MIT License

Downloads
122.6K
Stars
58
Committers
6
session - 6.1.0 Latest Release

Published by odan almost 2 years ago

Added

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

Changed

  • Update docs
session - 6.0.0

Published by odan almost 2 years ago

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

session - 5.1.0

Published by odan almost 4 years ago

Added

  • Add PHP 8.0 support #14

Fixed

  • Fix getId and getName type casting
session - 4.1.0

Published by odan almost 4 years ago

Added

  • Add PHP 8.0 support #14
session - 5.0.0

Published by odan about 4 years ago

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/

session - 4.0.0

Published by odan over 5 years ago

Breaking Canges

  • Renamed SessionMiddleware to SessionDoublePassMiddleware

Deprecated

  • Deprecated SessionDoublePassMiddleware

Added

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

Published by odan over 5 years ago

  • Minor build and code style improvements
session - 3.2.0

Published by odan over 5 years ago

Changes

  • Middleware improvement #3
session - 3.1.0

Published by odan over 5 years ago

Added

  • Add session middleware
session - 3.0.0

Published by odan over 5 years ago

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.
session - 2.0.0

Published by odan over 5 years ago

  • Changed Session Interface
  • Update min. PHP version to PHP 7.2
  • Updated tests
session - 1.0.0

Published by odan over 6 years ago

session -

Published by odan over 6 years ago

session -

Published by odan almost 7 years ago

session -

Published by odan almost 7 years ago

session -

Published by odan almost 7 years ago

session -

Published by odan almost 7 years ago

session -

Published by odan almost 7 years ago

session -

Published by odan almost 7 years ago