PHP 会话的最大大小 [英] Maximum size of a PHP session

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

问题描述

PHP 会话中可以存储的最大大小是多少?

What is the maximum size that can be stored in a PHP session?

推荐答案

您可以在会话中存储任意数量的数据.所有会话都存储在服务器上.您可以达到的唯一限制是脚本一次可以消耗的最大内存,默认情况下为 128MB.

You can store as much data as you like within in sessions. All sessions are stored on the server. The only limits you can reach is the maximum memory a script can consume at one time, which by default is 128MB.

(类似答案:理想的 PHP 会话大小? - 一些有用的评论)

(Similar answers: Ideal PHP Session Size? - some useful comments)

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

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