I have seen on some CakePHP websites that they have extra information on the logout eg http://website.com/logout/DxcFaWlFaDOw
Apparently this is for security reasons? Can anyone tell me more about this and how to implement it using Cake?
These security codes are called CSRF tokens, and they are used to prevent CSRF attacks to happen. (even though using CSRF tokens in logout links is quite pointless)
You can implement it in Cake by using the Form helper and adding:
public $components = array('Security');
in your controllers.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.