Problem with the session

public $components = array(‘Session’); - in AppController

in UsrController
$this->Session->write(‘Usr’, ‘3’);
debug($this->Session->read(‘Usr’)); - the result is null

Some time to work, then stopped working.
What is the problem?

Hey. I think in cakephp3 you have to call the session via the request object. This came with an early cake3 update. I am on mobile right now, so please check the cookbook. There is also a deprecation-hint. If younare on cake2, i have no clue :wink:

I use version 2.6.
There is no possibility to update to version 3