PHP Classes

File: vendor/jackbooted/util/Sess.php

Recommend this page to a friend!
  Classes of Brett Dutton   JackBooted PHP Framework   vendor/jackbooted/util/Sess.php   Download  
File: vendor/jackbooted/util/Sess.php
Role: Class source
Content type: text/plain
Description: Class source
Class: JackBooted PHP Framework
Web application framework using simplified MVC
Author: By
Last change:
Date: 8 years ago
Size: 563 bytes
 

Contents

Class file image Download
<?php
namespace Jackbooted\Util;

use \
Jackbooted\G;
/**
/** Sess.php -
 *
 * @copyright Confidential and copyright (c) 2016 Jackbooted Software. All rights reserved.
 *
 * Written by Brett Dutton of Jackbooted Software
 * brett at brettdutton dot com
 *
 */

class Sess extends \Jackbooted\Util\JB {

    public static function
get ( $key, $def='' ) {
        if ( ! isset (
$_SESSION[G::SESS][$key] ) ) return $def;
        return
$_SESSION[G::SESS][$key];
    }

    public static function
set ( $key, $val ) {
       
$_SESSION[G::SESS][$key] = $val;
    }
}