Google News
logo
CakePHP - Interview Questions
What are the sessions in CakePHP?
PHP Sessions allows you to identify unique users across requests and store persistent data for specific users against a unique session ID. It is used to persist state information between page requests.
 
Session IDs are normally sent to the browser via session cookies, and the ID is used to retrieve existing session data.
 
You can access the session data any place you have access to a request object. It means the session is accessible from :
 
* Controllers
* Views
* Helpers
* Cells
* Components
Advertisement