Header menu


Thursday, 12 September 2013

Get session information in cakephp

How to get session information in cakephp 

In the controller you can use


to get all details of session variable . And you can use


to use these values in corresponding view page.


If you wish to use session variable in each page then use set method in appcontroller to set its value

public function beforefilter(){

Now this session variable is accessible in every page of view.

Note: this should be placed in Appcontroller...