Hello everyone for some reason, the redis adapter is using a file to store the session instead of redis itself
this is my config
$di->set('session', function () { $session = new SessionAdapter(); $session->setOptions(array( "host" => "localhost", "port" => 6379, "persistent" => true, "lifetime" => 3600, "prefix" => "SES_", "index" => 0 )); $session->start(); return $session; });
and when I check " /var/lib/php/sessions " (where file sessions are stored), a file is created whenever I save data into the session object, and when I delete the files the session data is lost, if im not mistaken this is the behaviour of the file adapter because when i use " redis_cli keys * " it retuns an empty set and it behaves weird because I can only access the session stored objects on certain controllers whereas in others it returns null, when i use var_dump($this->session) i get all the options i have set, when using th file adapter everything works fine, any help would be appreciated
P.D. also i get this warning, thou it may not be just a warning " Warning: session_set_save_handler(): Cannot change save handler when session is active in ... on line xxx " but only in the controllers where i can access the session
P.D.2 when using redis as backend cache it works fine too, session is the only problem
Phalcon version 3.3.1
php version 7.2.3