跨站设置cookie

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

  1. 修改windows下的hosts文件(用户模拟多站点)

    127.0.0.1    www.atest.com 

    127.0.0.1    www.btest.com 

  2. 访问atest站点时,间接访问btest站点,利用btest站点下的页面设置btest站点cookie

  3. atest/index.php内容:
  4. btest/get.php内容:
  5. 访问站点btest/index.php,测试看看是否储存成功cookie






转载于:https://my.oschina.net/colin86/blog/524383

你可能感兴趣的:(跨站设置cookie)