¾È³çÇϼ¼¿ä. ³Ø½ºÆ®¶óÀÎ À¥È£½ºÆà °í°´Áö¿øÆÀÀÔ´Ï´Ù. À¥È£½ºÆü¹öÀÇ Àåºñ³ëÈÄ·Î ½Å±Ô¼¹ö·Î ±³Ã¼µÇ¾ú½À´Ï´Ù. ½Å±Ô¼¹ö·Î ±³Ã¼ÇÔ°ú µ¿½Ã¿¡ PHP ¹öÁ¯µµ ÇÔ²² ¾÷±×·¹À̵å ÇÏ¿´½À´Ï´Ù. Ȥ ¿î¿µÇϽô À¥ÇÁ·Î±×·¥ÀÌ PHP·Î µÇ¾îÀִ°æ¿ì PHP ÀÇ setcookie() ÇÔ¼ö¿¡¼ ¾à°£ÀÇ º¯°æÀÌ ÀÖÀ¸¹Ç·Î ÄíÅ°¸¦ Àû¿ëÇÏ´Â ½ºÅ©¸³Æ®¿¡¼ ÀÛµ¿ÀÌ µÇÁú ¾Ê´Â´Ù¸é ´ÙÀ½°ú °°ÀÌ ¼öÁ¤ÇÏ¿© ÁֽʽÿÀ.
setcookie("ÄíÅ°º¯¼ö","ÄíÅ°°ª","ÄíÅ°À¯È¿½Ã°£","ÄíÅ°Àû¿ëµð·ºÅ丮"); ±âÁ¸ÀÇ ½ºÅ©¸³Æ®¿¡¼
setcookie("cookie_var","cookie_value","","/"); À§¿Í°°ÀÌ ÄÚµùµÇ¾î ÀÖ´Ù¸é
setcookie("cookie_var","cookie_value",0,"/"); °ú°°ÀÌ ÄíÅ°À¯È¿½Ã°£À» "" ·Î °ø¹éÀ¸·Î µÎ½Å°æ¿ì Á¤»óÀûÀ¸·Î ÄíÅ°°¡ ¼ÂÆõÇÁö ¾Ê½À´Ï´Ù.
¹Ýµå½Ã 0 ȤÀº "0"À¸·Î ¼öÁ¤ÇÏ¿© Áֽñ⠹ٶø´Ï´Ù.
°ü·ÃÇÏ¿© ¹®ÀÇ°¡ ÀÖÀ¸½Ã¸é Äü¸ÞÀÏ·Î ¹®ÀÇÇÏ¿©ÁÖ½Ã¸é ºü¸¥´äº¯À» ¹Þ¾Æº¸½Ç ¼ö ÀÖ½À´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
|
|
|