yii2如何配置 添加cookie的httponly?
在main.php 中 components中添加以下内容就可以了,望采纳。 ` 'session'=>array(
.... 'cookieMode'=>'only', ....
) `