'-------------------------------------------------
' 쿠키 중복 체크
'-------------------------------------------------
Function CookieDuplicateCheck(tableName, idx)
dim dupliChk
dim c_read_idx
dim i
dupliChk = false
c_read_idx = Request.Cookies("C_TABLE_NAME")("READ")
Response.Cookies("C_TABLE_NAME") = tableName
Response.Cookies("C_TABLE_NAME").Path = "/"
Response.Cookies("C_TABLE_NAME").Expires = date+1
arrRead = split(c_read_idx,",")
for i = 1 to UBound(arrRead)
if CInt(idx) = CInt(Trim(arrRead(i))) then
dupliChk = true
end if
next
if dupliChk = true then
Response.Cookies("C_TABLE_NAME")("READ") = c_read_idx
else
Response.Cookies("C_TABLE_NAME")("READ") = c_read_idx & "," & idx
end if
CookieDuplicateCheck = dupliChk
End Function
' 쿠키 중복 체크
'-------------------------------------------------
Function CookieDuplicateCheck(tableName, idx)
dim dupliChk
dim c_read_idx
dim i
dupliChk = false
c_read_idx = Request.Cookies("C_TABLE_NAME")("READ")
Response.Cookies("C_TABLE_NAME") = tableName
Response.Cookies("C_TABLE_NAME").Path = "/"
Response.Cookies("C_TABLE_NAME").Expires = date+1
arrRead = split(c_read_idx,",")
for i = 1 to UBound(arrRead)
if CInt(idx) = CInt(Trim(arrRead(i))) then
dupliChk = true
end if
next
if dupliChk = true then
Response.Cookies("C_TABLE_NAME")("READ") = c_read_idx
else
Response.Cookies("C_TABLE_NAME")("READ") = c_read_idx & "," & idx
end if
CookieDuplicateCheck = dupliChk
End Function
'asp' 카테고리의 다른 글
동적으로 배열 크기 조절하는 팁 (0) | 2007.05.02 |
---|---|
쿠키를 이용해서 중복 추천 방지하기 (0) | 2007.05.02 |
오라클 clob타입 입력방법 (0) | 2007.05.02 |
request.form, request.querystring 값 확인 하기 (0) | 2007.05.02 |
asp로 xml 읽어 들이는 예제 (0) | 2007.05.02 |