A middleware oriented session handler for PHP and Slim 4+
MIT License
has
method to SessionInterface
#30 #29Published by odan almost 2 years ago
PhpSession
constructor.SessionInterface
to handle session data operations only, e.g. get
, set
.replace
to setValues
.remove
to delete
.save
method is now optional.Odan\Session\Middleware\SessionMiddleware
to Odan\Session\Middleware\SessionStartMiddleware
.SessionManagerInterface
to handle session operations, such as start
, save
, destroy
, getName
, etc.default
parameter to session get
method.setOptions
and getOptions
. Pass all settings into PhpSession
constructor instead.setCookieParams
and getCookieParams
. The cookie parameters must bestart
method.setName
method. Use the name
setting instead.setId
method. Use the optional id
setting instead.count
method.SessionAwareInterface
in favor of dependency injection.Changelog: https://github.com/odan/session/blob/master/CHANGELOG.md#600---2022-12-04
Published by odan almost 4 years ago
Published by odan almost 4 years ago
Published by odan about 4 years ago
SessionDoublePassMiddleware
SessionMiddleware
into its own namespace: Odan\Session\Middleware
SessionException
instead of returning false for errorSessionException
All Details: #7
Documentation: https://odan.github.io/session/v5/
Published by odan over 5 years ago
SessionMiddleware
to SessionDoublePassMiddleware
SessionDoublePassMiddleware
Published by odan over 5 years ago
Published by odan over 5 years ago
Published by odan over 5 years ago
Published by odan over 5 years ago
all
methodget
method. The method returns null
if the key not exists. Better use the ??
operator to define default values.SessionInterface
to namespace Odan\Session
setId
if the session is started, a RuntimeException
will be thrownSession
wrapper class is not required anymore and was removed.Published by odan over 5 years ago
Published by odan over 6 years ago