[英]What does `session.entropy_length` in `PHP.ini` do?
In the session section of PHP.ini
there is a directive called session.entropy_length
. 在
PHP.ini
的会话部分中,有一个名为session.entropy_length
的指令。
I'm aware that it's used to make the generation of the session id
more random. 我知道它用于使
session id
的生成更随机。
How does it do that? 它是如何做到的?
What is the maximum length? 最大长度是多少?
What if it's exceeding the bits of the hash
in use? 如果它超出了正在使用的
hash
的位数怎么办?
session.entropy_length specifies the number of bytes which will be read from the file specified above.
session.entropy_length指定将从上面指定的文件中读取的字节数。 Defaults to 0 (disabled).
默认为0(禁用)。
The "file mentioned above" is session.entropy_file “上面提到的文件”是session.entropy_file
'entropy' for sessions is related to the randomness of session id values 会话的“熵”与会话id值的随机性有关
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.