Download the PHP package rapidwebltd/zebra-session-loader without Composer
On this page you can find all versions of the php package rapidwebltd/zebra-session-loader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rapidwebltd/zebra-session-loader
More information about rapidwebltd/zebra-session-loader
Files in rapidwebltd/zebra-session-loader
Package zebra-session-loader
Short Description This library automatically starts Zebra sessions (database powered sessions) wherever vendor/autoload.php is included. It can be useful if you need to add database powered sessions to a bespoke PHP application that lacks an existing framework.
License LGPL-3.0-only
Rated 3.00 based on 3 reviews
Informations about the package zebra-session-loader
Zebra Session Loader
This library automatically starts Zebra sessions (database powered sessions) wherever vendor/autoload.php
is included. It can be useful if you need to add database powered sessions to a bespoke PHP application that lacks an existing framework.
Installation
-
Run
composer require rapidwebltd/zebra-session-loader
. - Create a
session_data
table in your MySQL database to hold session data. You can use the SQL below to do this.
Configuration
Add the following to your .env
file, changing the database connection details to point at the database containing your session_data
table.
You should also ensure the security code is changed to a random string.
Now any page that includes vendor/autoload.php
will automatically use database powered sessions, provided by Zebra sessions.
All versions of zebra-session-loader with dependencies
stefangabos/zebra_session Version ^2.1
divineomega/dotenv-loader Version ^2.0