Zend Framework Login: Creating LogoutTag: framework, zend, zend framework, authentication, Zend_Auth, logout Category: PHP Frameworkpost: 22 Apr 2008 read: 840 Zend Framework Login System Step by Step Tutorial - Part 6: At protected page (in previous post), we had created a link to logout. This post talk about logout page. First, create view for logout. Create a file named "logout.phtml" within application/views/scripts/user. Leave blank (because we don't want to show anything). Then, we create a method for controller named logoutAction(). Open "UserController.php" within application/controllers. Add following method:
We just use clearIdentity(). Then redirect page to another page (in this sample to user). |
| | Give Your Opinion | Recommend |
|

