Download the PHP package hrevert/ht-session without Composer
On this page you can find all versions of the php package hrevert/ht-session. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hrevert/ht-session
More information about hrevert/ht-session
Files in hrevert/ht-session
Package ht-session
Short Description A Zend Framework 2 module to manage session configurations, session validators, storing session data in database.
License MIT
Homepage https://github.com/hrevert/HtSession
Informations about the package ht-session
HtSession
A Zend Framework 2 module to manage session configurations, session validators, storing session data in database.
Requirements
Installation
- Add
"hrevert/ht-session": "1.1.*",
to your composer.json and runphp composer.phar update
- Enable the module in
config/application.config.php
- Copy file located in
./vendor/hrevert/ht-session/config/HtSession.global.php
to./config/autoload/HtSession.global.php
and change the values as you wish
Options
Check Options available in config/HtSession.global.php
Features
- Session configurations
- Session set save handler
- Session Validators
Session configurations
You can set all the session options as session name, save path etc.
Session set save handler
This module also comes with session set save handler to store session data in database.
By default session_set_save_hander
is already enabled. If you want to disable it, disable it in the following settings:
Note
: Dont forget to import schema available in data/mysql.sql
to use session_set_save_handler
If you use Doctrine DBAL:
Session Validators
You can set validators provided by Zend Framework 2 with ease. Change the following as you wish in the config file:
For more detailed description, click here.
Ending Thoughts
Dont forget to fork this module and send pull request to make this module even better!
All versions of ht-session with dependencies
zendframework/zend-stdlib Version ~2.2
zendframework/zend-modulemanager Version ~2.2
zendframework/zend-mvc Version ~2.2
zendframework/zend-session Version ~2.2