How do I access SESSIONs in CakePHP's app.php?

Viewed 580

I am using CakePHP 3.3

I am trying to set session timeout's value and other settings in app.php to a value stored in config database table.

I tried using the line below but it's just stoping execution of the webpage.

$myConfigs = Cake\View\Helper\SessionHelper::read('my_configs');

Can anyone please let me know how do I access session out side controller and model, OR is there a way to set values of the variables in app.php in controller?

1 Answers
Related