Beispiel #1
0
 public function __construct()
 {
     Session::start();
     if (Request::env('SESSION')->alerts->exists()) {
         self::$alerts = json_decode(Request::env('SESSION')->alerts->val(), true);
     }
 }
Beispiel #2
0
 public function destroy()
 {
     parent::destroy();
     switch ($this->key) {
         case 'SESSION':
             Session::destroy();
             break;
     }
 }
Beispiel #3
0
 public static function get($value = null)
 {
     return Encrypter::md5(Request::env('SERVER')->REMOTE_ADDR->val() . Request::env('SERVER')->HTTP_USER_AGENT->val() . Request::env('SERVER')->HTTP_HOST->val() . Session::id() . $value);
 }