⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showcookies.srf

📁 Vc.Net入门与提高源码
💻 SRF
字号:
{{ handler ShowCookies.dll/Default }}
<html>
	<!-- (c) 2000 Microsoft Corporation -->
	<head>
		<title>{{Title}}</title>
		<meta http-equiv="content-type" content="text/html; charset=iso8859-1">
		<link rel="stylesheet" href="normal.css" type="text/css">
	</head>

	<body>
		<h1>{{Title}}</h1>

		<h3>Instructions</h3>
		<p>
		Use the <a href="setcookies.srf">SetCookies Sample</a> to create some cookies
		then return to this page to see that the browser has successfully returned them
		to the server. Compare the cookies collection and the HTTP_COOKIE variable, which are
		both available on the server, with the <b>cookie</b> property of the <b>document</b> object, which
		is available via client-side script.
		</p>

		<h2>Server - Cookies collection</h2>
		<table>
		<tr><th>Name</th><th>Value</th></tr>
		{{ShowCookies}}
		</table>

		<h2>Server - GetServerVariable("HTTP_COOKIE")</h2>
		<div id="serverCookie">
		{{ShowCookieVariable}}
		</div>

		<h2>Client - document.cookie</h2>
		<div id="clientCookie">
		<script language="javascript">
		<!--
			document.write(document.cookie);
		//-->
		</script>
		</div>


	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -