Horde_SessionHandler_Storage::open PHP Method

open() abstract public method

Open the backend.
abstract public open ( string $save_path = null, string $session_name = null )
$save_path string The path to the session object.
$session_name string The name of the session.
    public abstract function open($save_path = null, $session_name = null);

Usage Example

示例#1
0
 /**
  * Open the backend.
  *
  * @param string $save_path     The path to the session object.
  * @param string $session_name  The name of the session.
  *
  * @return boolean  True on success, false otherwise.
  */
 public function open($save_path = null, $session_name = null)
 {
     if (!$this->_connected) {
         try {
             $this->_storage->open($save_path, $session_name);
         } catch (Horde_SessionHandler_Exception $e) {
             $this->_logger->log($e, 'ERR');
             return false;
         }
         $this->_connected = true;
     }
     return true;
 }