Is there a way of accessing the current session in the AppModel class?
I want to save the ID of the currently logged in user to almost every INSERT/UPDATE action.
Is there a way of accessing the current session in the AppModel class? I
Share
Found a working solution for CakePHP 2 here: Reading a session variable inside a behavior in cakephp 2
This is my AppModel: