Helper/Session.php
private function setSession($session, $sessionID)
    {
        // close current session
        $session->writeClose();
        // set session id (to value loaded from cache)
        $session->setSessionId($sessionID);
        // re-start the session
        $session->start();
    }
private function setSession($session, $sessionID)
    {
        // close current session
        $session->writeClose();
        // set session id (to value loaded from cache)
        $session->setSessionId($sessionID);
        // re-start the session
        $session->start();
    }
private function setSession ( $ session , $ sessionID ) { // close current session $ session -> writeClose ( ) ; // set session id (to value loaded from cache) $ session -> setSessionId ( $ sessionID ) ; // re-start the session $ session -> start ( ) ; }
Emulate session from cached session id

@param mixed $session
@param string $sessionID
Emulate session from cached session id