我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Wordpress定义('COOKIE_DOMAIN',false)含义

I have a Wordpress multisite which uses two different domains e.g:

  • www.test.com - primary site
  • www.example.com

In order to get the login to work on the non primary site I have had to add the following line in my wp-config.php file

define('COOKIE_DOMAIN',false);

This allows any of the WordPress Domains to set the Cookie and in turn allows a user to login on the secondary site. My question is what are the security implications to effectively wildcarding the Cookie domain?

近期文章

  • 括号和对象成员的PHP行为
  • 映射所需属性的对象签名
  • 你如何将Laravel查询结果转换为json?
  • 使用PHP在HTML页面中显示SQL表格内容
  • WordPress主题开发||| 目录主题名称
  • 以数据映射器模式创建对象数组
  • 分页使用mysql中的类别无法正常工作
  • MYSQL php数据库插入包括图像上传
  • glob()foreach不能在IE11中运行,但适用于Chrome?
  • StrToTime在传入变量时不起作用
  • 用Wordpress wp_editor包含TinyMCE插件?
  • ln:/ usr / bin / php:操作不允许OSX 10.11
  • PHP平面数组嵌套['a','b','c']到['a'=> ['b'=>'c']] - 高级[关闭]
  • 将MySQL变量与PDO Select语句一起使用
  • 简单的PHP结果消息以及其他一些要点
  • 对多个选择使用ajax选择更改
  • 部署我的第一个移动网站:3个新手问题
  • 使用PHP将JSON数据转换为HTML下拉列表
  • 检查值是否存在更新其他插入laravel
  • Wordpress - Woocommerce:添加此链接的位置?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华