PHP Classes

Dframe PHP Session Class: Manage PHP sessions assigned with a name

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 105 All time: 9,721 This week: 455Up
Version License PHP version Categories
dframe-session 1.0The PHP License5PHP 5, User Management
Description 

Author

This class can manage PHP sessions assigned with a name.

It can take assign the name of the current session to a given name.

The class also provides functions to provide features of interest like:

- Assign a fingerprint value based on the current session name, user IP address and browser
- Check if the current session fingerprint is still values
- Set, get, check and delete one session variable
- Set, get, check and delete multiple session variables at once

Picture of Slawomir Kaleta
  Performance   Level  
Name: Slawomir Kaleta <contact>
Classes: 16 packages by
Country: Poland Poland
Age: ???
All time rank: 230953 in Poland Poland
Week rank: 49 Up1 in Poland Poland Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

Documentation

Dframe/Sesssion - Component

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

php framework dframe logo

Documentation - Session PHP

Composer

$ composer require dframe/session

Standalone

$this->session = new \Dframe\Session\Session('name');
$session = new \Dframe\Session\Session('HashSaltRandomForSession');
$session->register();                        // Set session_id and session_time - default 60
$session->authLogin();                        // Return true/false if session is registered
$session->set($key, $value);                   // set $_SESSION[$key] = $value;
$session->get($key, $or = null);                // get $_SESSION[$key];
$session->remove($key);                       // unset($_SESSION[$key]);
$session->end();                            // session_destroy

License

Open-sourced software licensed under the MIT license


  Files folder image Files (3)  
File Role Description
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Plain text file Session.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:105
This week:0
All time:9,721
This week:455Up