<html>
	<head>
		<title>request对象测试</title>
	</head>
	<body >
<%
//设定变量
int loop1;
HttpCookie MyCookie;
HttpCookieCollection MyCookieCollection = Request.Cookies;
for (loop1 = 0;loop1<= MyCookieCollection.Count - 1;loop1++){
MyCookieCollection.GetKey(loop1);
Response.Write(MyCookieCollection[loop1].Name +"-"
+MyCookieCollection[loop1].Value);
MyCookie = MyCookieCollection[loop1];
MyCookie.Value = "abcd888" ;
MyCookie.Expires = System.DateTime.Now.AddHours(1);
Response.Cookies.Add(MyCookie);
}  
%>
	</body>
</html>
