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

PHP cookie和'JS'cookie是一样的吗?

If i set a cookie in PHP with the setcookie() function, can i access that with javascript cookie api, in other words are the php and javascript cookie access interchangeable?

A cookie is a cookie, unless it is specified to be HTTP only.

Cookies are entirely independent of PHP and Javascript; they're just a client-side storage mechanism. So yes.

近期文章

  • 将数据从MySQL拉入json数组
  • php / postgres - 在浏览器上打印问题
  • 使用ajax每秒访问数据库
  • 为什么$ _POST从ajax请求中得不到任何东西?
  • 单词边界与点签到字符串
  • PDO循环并打印fetchAll
  • FPDF表内容与单元格重叠
  • 在jquery脚本中获取页面加载的ID
  • 如何在<a>标签中调用onclick函数?
  • 多个插件无法使用mysql
  • Wordpress导航步行器计数子菜单
  • 有php头功能的麻烦
  • 在php中从本地磁盘读取文件
  • 正则表达式有助于匹配多个字母
  • Google使用PHP跟踪API“错误请求”
  • 使用mysql函数的mysqli查询[duplicate]
  • 使用Codeigniter向手机发送消息
  • 警告:遇到非数字值
  • 在Laravel Blade中无法获得Object param
  • index.blade视图中的未定义变量

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华