halukorhan1
IS-IT--Management
Hi,
I could not manage to delete the cookies on the client when the transaction is over.
The codes given below did not work to delete the cookie.
Response.cookies("sepet")("SID") = ""
Response.Cookies("sepet").Expires = Date() - 15
Even I had tried to change the SID value (assign a new value) in the cookie with the codes given below, but it did not work:
<%
if cint(day(now)) < 10 then
dd = "0" + cstr(day(now))
else
dd = cstr(day(now))
end if
if Cint(month(now)) < 10 then
mm = "0" + cstr(month(now))
else
mm = cstr(month(now))
end if
yyyy = cstr(year(now))
if Cint(hour(time)) < 10 then
hh = "0" + cstr(hour(time))
else
hh = cstr(hour(time))
end if
if cint(minute(time)) < 10 then
min = "0" + cstr(minute(time))
else
min = cstr(minute(time))
end if
'Response.Cookies("sepet").Expires = Now()
'Response.cookies("sepet").Expires = Date() + 14
Response.cookies("sepet")("SID") = dd & mm & yyyy & hh & min & cstr(session.SessionID)
session.Contents.RemoveAll()
%>
Do you have any idea how can I delete the cookie on the client PC?
Any help is appreciated.
Regards!
Haluk
I could not manage to delete the cookies on the client when the transaction is over.
The codes given below did not work to delete the cookie.
Response.cookies("sepet")("SID") = ""
Response.Cookies("sepet").Expires = Date() - 15
Even I had tried to change the SID value (assign a new value) in the cookie with the codes given below, but it did not work:
<%
if cint(day(now)) < 10 then
dd = "0" + cstr(day(now))
else
dd = cstr(day(now))
end if
if Cint(month(now)) < 10 then
mm = "0" + cstr(month(now))
else
mm = cstr(month(now))
end if
yyyy = cstr(year(now))
if Cint(hour(time)) < 10 then
hh = "0" + cstr(hour(time))
else
hh = cstr(hour(time))
end if
if cint(minute(time)) < 10 then
min = "0" + cstr(minute(time))
else
min = cstr(minute(time))
end if
'Response.Cookies("sepet").Expires = Now()
'Response.cookies("sepet").Expires = Date() + 14
Response.cookies("sepet")("SID") = dd & mm & yyyy & hh & min & cstr(session.SessionID)
session.Contents.RemoveAll()
%>
Do you have any idea how can I delete the cookie on the client PC?
Any help is appreciated.
Regards!
Haluk