PHP cannot save large values of cookies,
This way, I let the cookie save a value, but not more than 2M.
How to do?
How can 235Kb be saved successfully?
Why not exceed 2m
------Solution--------------------
Explore
Reference:
Looks like you have plenty of bandwidth.
It's not a fun thing to do.
Where to set a cookie
Php?
I wrote it on purpose, exaggerated.
------Solution--------------------
Cookie data is transmitted to the server every time the browser refreshes
The browser does not have a limit on the size of the cookie, as you would say, 2M
So every time you refresh the browser is the equivalent of uploading 2M files, you think it's fun, right?
------Solution--------------------
or use the session.
------Solution--------------------
Open a Web page and use the light to pass cookies. It's not reliable. When encountering a network instability, don't think about having time to pass the HTML.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service