Home > Backend Development > PHP Tutorial > zend框架 如何控制登录状态

zend框架 如何控制登录状态

WBOY
Release: 2016-06-13 10:36:51
Original
945 people have browsed it

zend框架 怎么控制登录状态
在java里,可以使用filter来控制是否已经登录,判断session值,而不需要在每个action中判断

在php怎么实现呢,特别是zend框架里

刚开始学习php,请教大家

------解决方案--------------------
放在 preDispatch 里
------解决方案--------------------
可以使用zend_auth进行登入控制,还可以进行权限控制

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template