通知客户端的浏览器是禁用的cookie [英] notify client's browser is disabled cookies

查看:129
本文介绍了通知客户端的浏览器是禁用的cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi
我正在使用Vb.net代码开发asp.net。我需要通知我的客户,如果客户的浏览器被禁用了cookie,那么当启动asp.page时。



请帮助我。



Maideen

Hi I am developing the asp.net using Vb.net code. I need to notify my client if client's browser is disabled the cookies, when the launch the asp.page.

Pls help me.

Maideen

推荐答案

这里解释如下: http://stackoverflow.com/questions/4603289/how-to-detect-that-javascript-and-or-cookies-are-disabled [ ^ ]。



请注意,也可以禁用JavaScipt。然后 - 没有运气;但是,你至少可以通知使用它,这也在上面引用的答案中解释。



现在,如果你还想通知服务器端如果启用或不启用cookie,您可以使用Ajax通过JavaScript向服务器端发送HTTP请求:

http://en.wikipedia.org/wiki/Ajax_%28programming%29 [ ^ ]。



-SA
It is explained here: http://stackoverflow.com/questions/4603289/how-to-detect-that-javascript-and-or-cookies-are-disabled[^].

Note that JavaScipt can be also disabled. Then — no luck; however, you can at least notify the use about it, and this is also explained in the above referenced answer.

Now, if you also want to notify the server side that cookies are enabled or not, you can send an HTTP request to the server side by JavaScript using Ajax:
http://en.wikipedia.org/wiki/Ajax_%28programming%29[^].

—SA

这篇关于通知客户端的浏览器是禁用的cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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