php 会话 id 的唯一性 [英] How unique is the php session id

查看:25
本文介绍了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天全站免登陆