 |
|
|  |
ÄíÅ°¿¡ µ¥ÀÌŸ ¾²°í Àоî¿À±â |
|
|
 |
18³â Àü |
<%@ Language=VBScript %>
<%
str = request.cookies("data")
str1 = request.cookies("aa")
%>
<HTML>
<HEAD>
<SCRIPT language="JavaScript">
function readcookie()
{
cookiedata = document.cookie;
//alert(cookiedata);
//alert(cookiedata.indexOf("data3"));
if ( cookiedata.indexOf("data3") >= 0 ){
alert(cookiedata);
}
}
function setcook()
{
cookiedata = document.cookie;
//alert("1 read cookie: " + cookiedata);
document.cookie = "aa=bb;";
//cookiedata = cookiedata + "; name = namedata" + ";";
//cookiedata = document.cookie;
//document.cookie = cookiedata;
//alert("read cookie: " + cookiedata);
alert("read cookie: " + document.cookie);
//alert(cookiedata.indexOf("data3"));
}
</script>
</HEAD>
<BODY>
Cookie data : <%=str%>
Cookie data1 : <%=str1%>
<input type=button value="readcookie" onClick="readcookie();" id=button1 name=button1>
<input type=button value="set cookie" onClick="setcook();" id=button2 name=button2>
<P>?</P>
<a href="test-asp3.asp">test-asp3.asp</a>
</BODY>
</HTML>
<!--start sima--><center><input type="button" value="View Source" onClick='window.location="view-source:"+window.location.href'><!--end sima--> |
|
̵̧ : 290 |
̵̧
¸ñ·Ï
|
|
|  |
|