Reputation: 4978
We are experiencing an issue when an invalid url is passed to cake. This loads the missing_controller.ctp view correctly but $_SESSION variable is empty.
We have tested this on 1.3 and 2.0 and in both version $_SESSION is empty when the missing_controller view is rendered.
Is this done on purpose?
Thanks
Regards Gabriel
Upvotes: 1
Views: 224
Reputation: 388
Did you imported the Session component in Controller? Like this:
<?php
class MissingController extends AppController{
var $components = array('Session');
var $helpers = array('Session');
}
Try to access the data in $_SESSION with $this->Session->read('This.That');
Upvotes: 4