File: README.md

Recommend this page to a friend!
  Classes of Slawomir Kaleta  >  Dframe PHP Session Class  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Dframe PHP Session Class
Manage PHP sessions assigned with a name
Author: By
Last change: Resolved #155, Invalid namespace component
fix init files tab
Resolved #149, Recovery v4.0
Date: 1 month ago
Size: 1,583 bytes
 

Contents

Class file image Download

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


For more information send a message to info at phpclasses dot org.