How does the zend Framework control the logon status in java? filter can be used to control whether a user has logged on and the session value, instead of determining how to implement it in php in every action, especially when I first started learning php in the zend Framework, I would like to ask you ------ solution -------------------- put it in preDispatch ------ solution ---------------- how does the zend Framework control the logon status?
In java, filter can be used to control whether a user has logged on to the database and determine the session value, without the need to judge in each action.
How can we implement it in php, especially in the zend framework?
Learning php at the beginning.
------ Solution --------------------
Put in preDispatch
------ Solution --------------------
You can use zend_auth for logon control and permission control.