arrays-in-cookies-php
2021. 12. 5. 13:39ㆍ웹 서버 구축
https://stackoverflow.com/questions/9032007/arrays-in-cookies-php
Storing PHP arrays in cookies
How is proper way to store an array in a cookie? in PHP Code example: $number_ticket=2; $info[7][5]=1; $info[8][5]=1;
stackoverflow.com
setcookie('tradeContentList', json_encode($tradeContentList), time()+86400);
$data = json_decode($_COOKIE['tradeContentList'], true);
'웹 서버 구축' 카테고리의 다른 글
인증서 (0) | 2021.12.31 |
---|---|
[문제해결] Cookie “trade_imgListPointer” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. (0) | 2021.12.04 |
How to Upload Image using PHP (0) | 2021.12.01 |
특정 디렉터리 umask 설정하기 (0) | 2021.11.14 |
lxd (0) | 2021.11.06 |