PHP Classes

File: docs/extensions/Session.md

Recommend this page to a friend!
  Classes of Slawomir Kaleta   Dframe Framework   docs/extensions/Session.md   Download  
File: docs/extensions/Session.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Dframe Framework
Modular MVC based PHP Web framework
Author: By
Last change: Update of docs/extensions/Session.md
Date: 3 years ago
Size: 448 bytes
 

Contents

Class file image Download

Dframe\Session

Methods

$session  = new Dframe\Session\Session('hashSaltRandomForSession');
$session->register(); // Set session_id and session_time - default 60
$session->authLogin(); // Return true/false if session is registrer
$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