我只在我的社交网站上手动设置了一个 cookie,但我非常依赖 php 会话.我想知道会话是否在幕后设置了任何 cookie?
I only manually set one cookie on my social network site, but I rely heavily on php sessions. I am wondering if sessions set any cookies behind the scenes?
我刚刚阅读了 HttpOnly-cookies,我只是想弄清楚我是否可以使用它们.
I was just reading up on HttpOnly-cookies and I am just trying to figure out if I can use them.
PHP 会话可以使用 cookie,具体取决于您如何配置它们.看看这些设置:
PHP sessions can use cookies depending on how you configure them. Have a look at these settings:
session.use_cookies (boolean):指定模块是否会使用cookies在客户端存储会话ID.默认为 1(启用).session.use_only_cookies (boolean):指定模块是否只使用cookies在客户端存储会话ID.启用此设置可防止涉及在 URL 中传递会话 ID 的攻击.这个设置是在 PHP 4.3.0 中添加的.自 PHP 5.3.0 起默认为 1(启用).如果您禁用会话 cookie,则会使用 GET 参数.
If you disable session cookies, a GET parameter is used instead.
这篇关于PHP 会话是否设置了任何 cookie?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
在 SELECT(MYSQL/PHP) 中加入 2 个表Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 个表)
如何使<option selected=“selected">由How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 设置?)
使用 PHP 中的数组自动填充选择框Auto populate a select box using an array in PHP(使用 PHP 中的数组自动填充选择框)
PHP SQL SELECT where like search item with multiple wordsPHP SQL SELECT where like search item with multiple words(PHP SQL SELECT where like search item with multiple words)
json_encode 从 MSSQL-SELECT 产生 JSON_ERROR_UTF8json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT(json_encode 从 MSSQL-SELECT 产生 JSON_ERROR_UTF8)
MySQL ORDER BY rand(),名称 ASCMySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名称 ASC)