protected function setEngine(SessionHandlerInterface $handler)
    {
        if (!headers_sent() && session_status() !== \PHP_SESSION_ACTIVE) {
            session_set_save_handler($handler, false);
        }

        return $this->_engine = $handler;
    }
protected function setEngine(SessionHandlerInterface $handler)
    {
        if (!headers_sent() && session_status() !== \PHP_SESSION_ACTIVE) {
            session_set_save_handler($handler, false);
        }

        return $this->_engine = $handler;
    }
protected function setEngine ( SessionHandlerInterface $ handler ) { if ( ! headers_sent ( ) && session_status ( ) !== \ PHP_SESSION_ACTIVE ) { session_set_save_handler ( $ handler , false ) ; } return $ this -> _engine = $ handler ; }
Set the engine property and update the session handler in PHP.

@param \SessionHandlerInterface $handler The handler to set
@return \SessionHandlerInterface
Set the engine property and update the session handler in PHP .