You are correct. That was supposed to be a get
(for retrieving records). The corrected example is:
http://docs.phalconphp.com/en/latest/reference/session.html
<?php
class UserController extends Phalcon\Mvc\Controller
{
public function indexAction()
{
//Set a session variable
$this->session->set("user-name", "Michael");
}
public function welcomeAction()
{
//Check if the variable is defined
if ($this->session->has("user-name"))
{
//Retrieve its value
$name = $this->session->get("user-name");
}
}
}