method destroy documentation in bbn\User\Session

function() { if ($this->id) { $this->open(); $args = \func_get_args(); $var =& $_SESSION[self::$name]; $var2 =& $var; foreach ($args as $i => $a){ if (!\is_array($var)) { $var = []; } if (!isset($var[$a])) { if (\count($args) >= $i) { $var[$a] = []; } else{ break; } } unset($var2); $var2 =& $var[$a]; unset($var); $var =& $var2; } $var = null; $this->data = isset($_SESSION[self::$name]) ? $_SESSION[self::$name] : []; $this->close(); return $this; } }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.