public function open()
    {
        if ($this->getIsActive()) {
            return \Reaction\Promise\resolve(true);
        }

        $this->registerSessionHandler();

        $self = $this;
        return $this->openInternal()->then(
            function() use ($self) {
                if (Reaction::isDebug()) {
                    //Reaction::info('Session started');
                }
                $self->updateFlashCounters();
            }
        );
    }