개발 연습

개발 연습

  • 분류 전체보기 (80)
    • 윈도우 프로그래밍 (5)
    • C++ 프로그래밍 (4)
    • QT 프로그래밍 (4)
    • Ubuntu (18)
    • Kali (2)
    • Linux API (2)
    • ARM 어셈블리 (2)
    • 웹 서버 구축 (28)
    • Python (7)
    • 리액트 (1)
    • 커뮤니티 제작 (3)
    • JAVA (4)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

개발 연습

컨텐츠 검색

태그

ubuntu php7.4 PDOException: could not find driver

최근글

댓글

공지사항

아카이브

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

관련글

  • 인증서 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. 2021.12.04
  • How to Upload Image using PHP 2021.12.01
  • 특정 디렉터리 umask 설정하기 2021.11.14
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바