php会话和cookie值最大长度 [英] php session and cookie values maximum length

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

问题描述

php会话和cookie的最大值大小是多少?

What is maximum value size for php session's and cookie's? that is maximum how much byte can put in him

$_SESSION['key'] = "here what maximum bytes are possible";

$_COOKIE['key'] = "here what maximum bytes are possible";


推荐答案

$ _ SESSION 您可以保存无限量的数据,没有真正的限制...

$_SESSION you can save unlimited amount of data, no real limit for that...

$ _ COOKIE 是我猜到4000字节以下...(包括日期,名称,值,到期)

$_COOKIE is I guess under 4000 bytes...(Includes date, name, value, expiry)

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

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