コード例 #1
0
 /**
  * @param array $exclude
  * @return void
  */
 public function removeAll(array $exclude = [])
 {
     foreach (array_keys($this->session->inst_getAll()) as $key) {
         if (!in_array($key, $exclude)) {
             $this->removeByKey($key);
         }
     }
 }
コード例 #2
0
 /**
  * @param string $key
  * @return string
  */
 protected function key($key)
 {
     if (!isset($_SESSION)) {
         \Session::start();
     }
     return sprintf("%s_%s%s", session_id(), $this->prefix, $key);
 }