묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
# 쿠키 이름을 만들어주는 함수
function GetMemberCookieName($Argument) {
if(getenv("SERVER_NAME"))
$ServerName = getenv("SERVER_NAME");
else
$ServerName = "";
$CookieName = "TTBoardMember".$Argument."_".$ServerName;
$CookieName =str_replace("~", "", $CookieName);
$CookieName =str_replace(";", "", $CookieName);
$CookieName =str_replace("<", "", $CookieName);
$CookieName =str_replace(">", "", $CookieName);
$CookieName =str_replace("*", "", $CookieName);
$CookieName =str_replace("|", "", $CookieName);
$CookieName =str_replace("'", "", $CookieName);
$CookieName =str_replace("&", "", $CookieName);
$CookieName =str_replace(";", "", $CookieName);
$CookieName =str_replace("$", "", $CookieName);
$CookieName =str_replace("!", "", $CookieName);
$CookieName =str_replace("#", "", $CookieName);
$CookieName =str_replace("(", "", $CookieName);
$CookieName =str_replace(")", "", $CookieName);
$CookieName =str_replace("[", "", $CookieName);
$CookieName =str_replace("]", "", $CookieName);
$CookieName =str_replace("{", "", $CookieName);
$CookieName =str_replace("}", "", $CookieName);
$CookieName =str_replace(":", "", $CookieName);
$CookieName =str_replace("'", "", $CookieName);
$CookieName =str_replace(""", "", $CookieName);
$CookieName =str_replace("^", "", $CookieName);
$CookieName =str_replace("r", "", $CookieName);
$CookieName =str_replace("n", "", $CookieName);
$CookieName =str_replace("/", "", $CookieName);
$CookieName =str_replace(".", "", $CookieName);
return $CookieName;
}
$UID = $HTTP_COOKIE_VARS[GetMemberCookieName("UID")]; # 회원 아이디
$GRADE_NAME = $HTTP_COOKIE_VARS[GetMemberCookieName("GRADE_NAME")]; # 회원 등급(등급이름으로 표시)
이렇게 쿠키명이 지정되어있는데...
어떻게 쿠키를 지워야하죠?
[질문] 로그아웃 하는 방법좀 알려주세요.
2002.03.20 13:23
# 쿠키 이름을 만들어주는 함수
function GetMemberCookieName($Argument) {
if(getenv("SERVER_NAME"))
$ServerName = getenv("SERVER_NAME");
else
$ServerName = "";
$CookieName = "TTBoardMember".$Argument."_".$ServerName;
$CookieName =str_replace("~", "", $CookieName);
$CookieName =str_replace(";", "", $CookieName);
$CookieName =str_replace("<", "", $CookieName);
$CookieName =str_replace(">", "", $CookieName);
$CookieName =str_replace("*", "", $CookieName);
$CookieName =str_replace("|", "", $CookieName);
$CookieName =str_replace("'", "", $CookieName);
$CookieName =str_replace("&", "", $CookieName);
$CookieName =str_replace(";", "", $CookieName);
$CookieName =str_replace("$", "", $CookieName);
$CookieName =str_replace("!", "", $CookieName);
$CookieName =str_replace("#", "", $CookieName);
$CookieName =str_replace("(", "", $CookieName);
$CookieName =str_replace(")", "", $CookieName);
$CookieName =str_replace("[", "", $CookieName);
$CookieName =str_replace("]", "", $CookieName);
$CookieName =str_replace("{", "", $CookieName);
$CookieName =str_replace("}", "", $CookieName);
$CookieName =str_replace(":", "", $CookieName);
$CookieName =str_replace("'", "", $CookieName);
$CookieName =str_replace(""", "", $CookieName);
$CookieName =str_replace("^", "", $CookieName);
$CookieName =str_replace("r", "", $CookieName);
$CookieName =str_replace("n", "", $CookieName);
$CookieName =str_replace("/", "", $CookieName);
$CookieName =str_replace(".", "", $CookieName);
return $CookieName;
}
$UID = $HTTP_COOKIE_VARS[GetMemberCookieName("UID")]; # 회원 아이디
$GRADE_NAME = $HTTP_COOKIE_VARS[GetMemberCookieName("GRADE_NAME")]; # 회원 등급(등급이름으로 표시)
이렇게 쿠키명이 지정되어있는데...
어떻게 쿠키를 지워야하죠?