I have 2 controllers, I am setting a session variable in one controller and trying to access it in the other.But its not taking the value I am assigning.
In the first Controller,
$this->Session->write('category',$id);
echo $this->Session->read('category'); //Outputs 17 which is correct
IN the Second controller,
echo $this->Session->read('category'); //Outputs images.jpg
I have checked,the session variable category is never taking a value of images.jpg.