php - '$_SERVER[' UNIQUE_ID']中的值是做什么用的?

标签 php superglobals

我找不到任何提及 in the documentation ,但在名为 UNIQUE_ID$_SERVER 超全局中似乎有一个额外的条目?这个值有什么用?

很明显,它是一个唯一 ID,但它是什么?当前 session 、脚本或服务器的?

最佳答案

http://httpd.apache.org/docs/current/mod/mod_unique_id.html

Apache 模块 mod_unique_id

This module provides a magic token for each request which is guaranteed to be unique across "all" requests under very specific conditions. The unique identifier is even unique across multiple machines in a properly configured cluster of machines. The environment variable UNIQUE_ID is set to the identifier for each request. Unique identifiers are useful for various reasons which are beyond the scope of this document.

关于php - '$_SERVER[' UNIQUE_ID']中的值是做什么用的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25196343/

相关文章:

php - 检查 $_COOKIE 值是否为空

php - Laravel (OOP),模型特定值数组(例如用户头衔)

php - 如何在不同时间重新创建具有相同 sha1sums 的 PHAR 文件?

php - 如何通过输入从DB中获取某一行的id?

php - $_SERVER ['SERVER_ADDR' ] 总是设置吗?

javascript - PHP 将变量传递给新的 Window.Open Javascript

javascript - 在 php 中插入一个 jQuery 值

php - 在 PHP 中直接使用 superglobals 是好是坏?

php - $_POST 和关联数组中的可变变量