±Û¾´ÀÌ :ÀÌÁ¾´ë 1998³â 10¿ù 15ÀÏ 14:59:31
Shoping Cart ¸¦ ¸¸µé±â À§ÇØ ÄíÅ°¸¦ »ç¿ëÇߴµ¥
Çѹø¿¡ ¸ðµç ÄíÅ°¸¦ Áö¿ï¼ö°¡ ¾ø³×¿ä!
º°·Î ¾î·Á¿î °Íµµ ¾Æ´Ñµ¥ Áö¿öÁöÁö ¾Ê´Â ÀÌÀ¯¸¦ ¸ð¸£°Ú³×¿ä
¹®Á¦°¡ ¹ºÁö ¾Æ½Ã´ÂºÐÀº Á¦¹ß °¡¸£ÃÄ ÁÖ¼¼¿ä
empPass[0]¹ø° µ¥ÀÌŸ´Â ÄíÅ°¸¦ ¸¸µå´Â ½ÃÀÛ ´Ü¾îÀÔ´Ï´Ù.
private void delShopingCart(String[] empPass) {
int i = 0;
String delFormStr = null;
Cookie cookies[], cookieCls, c = null;
cookies = Cookie.getCookies(request);
try{
if(cookies != null){
for (i=0;i<cookies.length;i++){
if (cookies[i].getName().startsWith(empPass[0])){
c = (Cookie)cookies[i].clone();
c.deleteCookie(response);
cookies[i].deleteCookie(response);
}
}
}
}
catch(IOException ioe){
}
return;
}