I would Create an application by Database based Session's And more options on the session:
-
Set expiration time
-
Force match ip
- Force match User-Agent
I can't find my answer at:
https://github.com/phalcon/incubator/tree/master/Library/Phalcon/Session/Adapter
How to combine (join) my target settings by this settings?
$di->set('session', function() use ($config) {
// Create a connection
$connection = new DbAdapter([
'host' => $config->database->host,
'username' => $config->database->username,
'password' => $config->database->password,
'dbname' => $config->database->dbname
]);
$session = new Database([
'db' => $connection,
'table' => 'session_data'
]);
$session->start();
return $session;
});