PHP Classes
elePHPant
Icontem

File: tests/bootstrap.php

Recommend this page to a friend!
  Classes of Lars Moelleken  >  PHP Session MySQL Handler  >  tests/bootstrap.php  >  Download  
File: tests/bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Session MySQL Handler
Handler for storing session data in MySQL
Author: By
Last change: Merge branch 'master' of https://github.com/voku/session2db

* 'master' of https://github.com/voku/session2db:
Apply fixes from StyleCI
Date: 3 months ago
Size: 203 bytes
 

Contents

Class file image Download
<?php

error_reporting
(E_ALL);
ini_set('display_errors', 1);

require_once
__DIR__ . '/../vendor/autoload.php';

# running from the cli doesn't set $_SESSION
if (!isset($_SESSION)) {
 
$_SESSION = [];
}