社区
ASP
帖子详情
如何监测客户端的cookies是否被禁止?
czty
2003-09-17 11:24:21
如何监测客户端的cookies是否被禁止?
...全文
34
3
打赏
收藏
如何监测客户端的cookies是否被禁止?
如何监测客户端的cookies是否被禁止?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
springRainyao
2003-10-16
打赏
举报
回复
cookieEnabled Property
--------------------------------------------------------------------------------
Retrieves whether client-side cookies are enabled in the browser.
Syntax
HTML N/A
Scripting [ bEnabled = ] clientCaps.cookieEnabled
Possible Values
bEnabled Boolean爐hat specifies one of the following values: false Browser does not support cookies.
true Browser supports cookies.
The property is read-only. The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft?Internet Explorer 5. For more information, see Dynamic Properties.
Example
This example displays all the properties available through the clientCaps behavior.
<HTML xmlns:IE>
<HEAD>
<STYLE>
@media all {
IE\:CLIENTCAPS {behavior:url(#default#clientCaps)}
}
</STYLE>
<SCRIPT>
function window.onload()
{
sTempStr = "availHeight = " + oClientCaps.availHeight + "\n" +
"availWidth = " + oClientCaps.availWidth + "\n" +
"bufferDepth = " + oClientCaps.bufferDepth + "\n" +
"colorDepth = " + oClientCaps.colorDepth + "\n" +
"connectionType = " + oClientCaps.connectionType + "\n" +
"cookieEnabled = " + oClientCaps.cookieEnabled + "\n" +
"cpuClass = " + oClientCaps.cpuClass + "\n" +
"height = " + oClientCaps.height + "\n" +
"javaEnabled = " + oClientCaps.javaEnabled + "\n" +
"platform = " + oClientCaps.platform + "\n" +
"systemLanguage = " + oClientCaps.systemLanguage + "\n" +
"userLanguage = " + oClientCaps.userLanguage + "\n" +
"width = " + oClientCaps.width + "\n" ;
oPre.innerText = sTempStr;
}
</SCRIPT>
</HEAD>
<BODY>
<H1>clientCaps Behavior Sample</H1>
<P>This example shows how to use the new <B>clientCaps</B>
behavior, introduced in Microsoft Internet Explorer 5, to obtain
client capabilities information. The following is a sampling of the
information that can be obtained:</P>
<IE:CLIENTCAPS ID="oClientCaps" />
<PRE id="oPre"></PRE>
</BODY>
</HTML>
ljupin
2003-09-17
打赏
举报
回复
在页面开头:
Response.Cookies("name") = "test"
然后在下面:
if Request.Cookies("name") = "" then
Response.Write("Cookies被禁止")
End if
wang7655
2003-09-17
打赏
举报
回复
去看看动网的论坛里有没有!
java 面试题 总结
GC是垃圾收集的意思(Gabage Collection),内存处理是编程人员容易出现问题的地方,忘记或者错误的内存回收会导致程序或系统的不稳定甚至崩溃,Java提供的GC功能可以自动
监测
对象
是否
超过作用域从而达到自动回收...
超级有影响力霸气的Java面试题大全文档
GC是垃圾收集的意思(Gabage Collection),内存处理是编程人员容易出现问题的地方,忘记或者错误的内存回收会导致程序或系统的不稳定甚至崩溃,Java提供的GC功能可以自动
监测
对象
是否
超过作用域从而达到自动回收...
Java程序员面试宝典笔记记录-第5章Java Web部分笔记
Servlet处理
客户端
请求步骤有哪些?Servlet与CGI区别?doPost和doGet方法如何抉择?Servlet的生命周期是什么?JSP有哪些优点?JSP与servlet异同?如何使用JSP与servlet实现MVC模型?MVC结构优点?forward和redirect...
Unity
客户端
对接网狐服务器完整源码实现
对接网狐服务器涉及通过Unity
客户端
与网狐后端服务进行高效、安全的数据通信。本文介绍基于C#网络编程实现TCP/IP连接、JSON/protobuf数据序列化、异步请求处理、用户认证与状态管理等核心技术,涵盖NetEngine网络...
为什么你的爬虫总被封?99%的人忽略了这4个Cookie关键点
掌握Python爬虫cookie处理的关键技巧,避免频繁被封。本文解析4个常被忽略的核心点:Cookie自动管理、会话保持、动态更新与隐私模式应用,适用于模拟登录、数据采集等场景,显著提升爬虫稳定性与效率。实用经验值得...
ASP
28,406
社区成员
356,946
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章