Fatal error: Call to undefined method Phalcon\Session\Adapter\Database::session_id() in /mnt/www/web/public/index.php
My code:
$connection = new \Phalcon\Db\Adapter\Pdo\Mysql(array(
"host" => "localhost",
"username" => "root",
"password" => "xxx",
"dbname" => "xxx"
));
$session = new \Phalcon\Session\Adapter\Database(array(
'db' => $connection,
'table' => 'session_data_phal'
));
if (isset($_GET['setsid'])) {
$session->session_id($_GET['setsid']);
}
$session->start();
Is a bug or im doing something wrong?