php会话ID有多独特 [英] How unique is the php session id

查看:83
本文介绍了php会话ID有多独特的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

php会话ID有多独特?我从阅读过的各种东西中得到的印象是,我不应该依赖永远不会获得相同sessionid的两个用户.不是GUID吗?

How unique is the php session id? I got the impression from various things that I've read that I should not rely on two users never getting the same sessionid. Isn't it a GUID?

推荐答案

Session_id确实可以重复,但是概率很低.如果您的网站访问量比较正常,则可能会在您的网站生命中发生一次,并且只会使一个会话的用户烦恼.

Session_id can indeed be duplicated, but the probability is very low. If you have a website with a fair traffic, it may happens once in you web site life, and will just annoy one user for one session.

除非您期望建立一个流量很高的网站或为银行业提供服务的服务,否则这不值得在意.

This is not worth to care about unless you expect to build a very high traffic website or a service for the bank industry.

这篇关于php会话ID有多独特的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆