Download the PHP package omatamix/session-lock without Composer
On this page you can find all versions of the php package omatamix/session-lock. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download omatamix/session-lock
More information about omatamix/session-lock
Files in omatamix/session-lock
Package session-lock
Short Description Securely manage and preserve session data.
License MIT
Homepage https://github.com/session-lock
Informations about the package session-lock
Session Lock
Installation
The best way to install Session Lock is through composer. If you do not have composer installed you can install it directly from the composer website. After composer is successfully installed run the command line code below.
Usage
Session Manager
The session manger comes with a simple api.
Start or resume a session.
Check to see if our session is running.
The put method sets a session variable.
This checks to see if this session variable is set.
The delete method deletes a session variable.
The get method gets the session variables value.
The flash method does the same as get but flash will delete the session variable after retrievale.
Stop a session.
Session Regeneration
It is very easy to update the current session id with a newly generated one.
Session Fingerprinting
This session manager comes with a built-in session fingerprinting which in a way improves session security. When you create a session handler instance, session fingerprinting is enabled by defualt, it binds your remote ip and user agent. If you do not want this enabled you can turn it off with.
You can also disable binding the remote ip or user agent like this.
If you are using a trusted proxy you can set the remote ip with this.
Session Handlers
You can also set how you session information is stored using session handlers,
Supported
Omatamix\SessionLock\SessionHandlers\CacheSessionHandler::class
Omatamix\SessionLock\SessionHandlers\CookieSessionHandler::class
Omatamix\SessionLock\SessionHandlers\DatabaseSessionHandler::class
Omatamix\SessionLock\SessionHandlers\NullSessionHandler::class
Encryption Adapters
This library also includes encrypted session handlers.
Supported
Omatamix\SessionLock\Encryption\Adapter\Defuse::class
Omatamix\SessionLock\Encryption\Adapter\Halite::class
Session Config
You can also pass session configuration through the session manager constructor method.
Security Vulnerabilities
If you discover a security vulnerability within Session Lock, please send an e-mail to Nicholas via [email protected]. All security vulnerabilities will be promptly addressed.
Contributing
All contributions are welcome! If you wish to contribute.
License
This project is licensed under the terms of the MIT License.
All versions of session-lock with dependencies
cakephp/database Version ^4.1
defuse/php-encryption Version ^2.2
symfony/cache Version ^5.1
symfony/filesystem Version ^5.1
symfony/options-resolver Version ^5.1
symfony/polyfill-apcu Version ^1.18
symfony/polyfill-ctype Version ^1.18