我找不到任何提及 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/