检测是否启用了Cookie [英] Detect if Cookies are enabled

查看:69
本文介绍了检测是否启用了Cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法检测是否在浏览器中为ASP.net页面启用了cookie。请尽快回复我。

Is there any way to detect if the cookies are enabled in the browser for am ASP.net page. please reply me asap.

推荐答案

我想你可以使用javascript来检测是否允许使用cookies?
I think you can use javascript to detect if cookies are allowed?


是的,我有代码如果浏览器支持,在javascript to chk中,但是如果启用了cookie我想要chk,而且如果我尝试使用javascript,那么必须在浏览器中启用它。
yea i got code in javascript to chk if thr browser supports, but i want to chk if the cookies are enabled and moreover if i try with javascript even that must be enabled in the browser.


我认为它们只是找出的方法是试着看看它们是否有效。

你可以依靠找出确定的协议。
I think they only way to find out is to try and see if they work.
There''s not really any identifying protocal that you can rely on to find out.


这篇关于检测是否启用了Cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆