/**
  * @return int
  */
 private function getSessionIdFromStorage()
 {
     /*
      * run dependency check
      */
     $this->checkDependencies();
     /*
      * if the container is empty return 0
      * else return the session id stored
      */
     if ($this->container->isEmpty()) {
         return 0;
     } else {
         return $this->container->read();
     }
 }
Exemple #2
0
 /**
  * {@inheritDoc}
  */
 public function clear()
 {
     $this->storage->clear();
 }
 /**
  * 
  * @return boolean
  */
 public function hasIdentity()
 {
     return !$this->storage->isEmpty();
 }