has($name)) { $_SESSION[$name] = []; } return array_pop($_SESSION[$name]); } function staticShift($name, $item) { if(!!$this->has($name)) { $_SESSION[$name] = []; } return array_shift($_SESSION[$name]); } function staticUnshift($name, $item) { if(!!$this->has($name)) { $_SESSION[$name] = []; } $_SESSION[$name] = [ $item, ...$_SESSION[$name] ]; } function staticMerge($name, $item) { if(!!$this->has($name)) { $_SESSION[$name] = []; } $_SESSION[$name] = [ ...$_SESSION[$name], ...$item ]; } function staticPath($path) { session_save_path($path); } function staticStatus() { switch(session_status()) { case PHP_SESSION_ACTIVE:{ return Session::$active = true; } default:{ return Session::$active = false; } } } function staticInit() { if(!Session::$ready) { $this->__contruct(); } if(!$this->staticStatus()) { $this->staticStart(); } } };