Free PHP Tutorials
CakePHP - Refreshing the Auths session
If you have developed with the Auth Component at all, you would know by now that the Auth session does not refresh when ever a user updates its information (such a drawback). This is extremely useful in many situations, especially when a user updates his profile, and you need to echo the new content in the views. I have written the following method, which should be placed in your App Controller. It can refresh the whole session or just a single key in the session.
Category: PHP | View Tutorial
Views: 108
Managing and manipulating _SESSION data with the Resession class
A small lightweight script that can manage and manipulate Session data. Calls session_start() in memory so that no header errors are thrown, as well as stores the session id in the object.
Category: PHP | View Tutorial
Views: 88

