Download the PHP package michalsn/codeigniter-session-extended without Composer
On this page you can find all versions of the php package michalsn/codeigniter-session-extended. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download michalsn/codeigniter-session-extended
More information about michalsn/codeigniter-session-extended
Files in michalsn/codeigniter-session-extended
Package codeigniter-session-extended
Short Description Managing user sessions stored in the database for the CodeIgniter 4 framework
License MIT
Homepage https://github.com/michalsn/codeigniter-session-extended
Informations about the package codeigniter-session-extended
CodeIgniter Session Extended
This library gives users the ability to view their own active sessions and remove them from devices they no longer use.
It works only with database session handler.
Requirements
This library requires the application to comply with CodeIgniter 4 authentication recommendations.
Installation
Composer
composer require michalsn/codeigniter-session-extended
Manually
In the example below we will assume, that files from this project will be located in app/ThirdParty/session-extended
directory.
Download this project and then enable it by editing the app/Config/Autoload.php
file and adding the Michalsn\CodeIgniterSessionExtended
namespace to the $psr4
array, like in the below example:
Now, follow the instructions of configuring session database handler - with one distinction. You have to use Michalsn\SessionExtended\DatabaseHandler
class instead of the core one.
The last step will be to run a command that will add extra fields to the session table. To do so, run command:
That's it. You're ready to go.