This file defines a base class for session handlers that need to store the session id in a cookie. It takes care of storing and retrieving the session id.
Author: Olav Morken, UNINETT AS. (andreas.solberg@uninett.no)
Inheritance: extends SimpleSAML_SessionHandler
 protected function __construct()
 {
     /* Call parent constructor to allow it to configure the session
      * id.
      */
     parent::__construct();
     /* Load the session object if it already exists. */
     $this->store = SimpleSAML_MemcacheStore::find($this->session_id);
     if ($this->store === NULL) {
         /* We didn't find the session. This may be because the
          * session has expired, or it could be because this is
          * a new session. In any case we create a new session.
          */
         $this->store = new SimpleSAML_MemcacheStore($this->session_id);
     }
 }
 /**
  * Initialize the session.
  *
  * @param SimpleSAML_Store $store The store to use.
  */
 protected function __construct(SimpleSAML_Store $store)
 {
     parent::__construct();
     $this->store = $store;
 }