Exemple #1
0
 public function destroy($session_id)
 {
     $key = sprintf('DALMP_%s', sha1($this->dalmp_sessions_ref . $session_id));
     if ($rs = $this->cache->Delete($key)) {
         /**
          * destroy REF on cache
          */
         if (isset($GLOBALS[$this->dalmp_sessions_ref]) && !empty($GLOBALS[$this->dalmp_sessions_ref])) {
             $this->cache->X()->HDEL($this->cache_ref_key, $key);
             $this->cache->X()->EXPIRE($this->cache_ref_key, 3600);
         }
         return true;
     } else {
         return false;
     }
 }