We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Session Blocking

Does phalcon blocks when

$this->session->start() is called?

because i tried

$this->session->start();
$this->session->set('test', 1);
session_write_close();
$this->session->set('test', 2);
echo $this->session->get('test') //2;

the test was overwritten even after the session_write_close which closes the write session to prevent blocking

The session can be started again after a call to session_write_close(). My guess is that when you access $this->session->set(), Phalcon's session service first checks if the session is started, and starts it if not.