饼干测试? [英] cookie test?

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

问题描述

我一直在ASP中使用它来测试客户端是否接受cookie:


<%@ language =" VBScript"%>

<%

会话(" nc")= 1

如果Len(会话(nc))= 0那么

''饼干关闭

否则

''饼干开启

结束如果

%>


但我只是在Microsoft Internet Explorer 6中测试过它,但不确定。无论如何使用Microsoft Internet Explorer 5.5 SP2 Len(会话(nc))<> 0始终是否打开或关闭cookie。任何人都可以建议一个更好的cookie测试,适用于大多数浏览器?谢谢。


-

George Hester

__________________________________

I have always used this in ASP to test if the client is accepting cookies:

<%@language="VBScript"%>
<%
Session ("nc") = 1
If Len(Session("nc")) = 0 Then
''Cookies Off
Else
''Cookies On
End If
%>

But I only ever tested it in Microsoft Internet Explorer 6 though not sure. Anyway with Microsoft Internet Explorer 5.5 SP2 Len(Session("nc")) <> 0 always whether cookies are on or off. Can anyone suggest a better cookie test that will work in most browsers? Thanks.

--
George Hester
__________________________________

推荐答案

见这里。 http://www.aspfaq.com/show.asp?id= 2058年


Ray在工作中


George Hester <他******** @ hotmail.com>在消息中写道

新闻:es ************** @ TK2MSFTNGP11.phx.gbl ...

我一直用这个在ASP中测试客户是否接受cookie:


<%@ language =" VBScript"%>

<%

会话(" nc")= 1

如果Len(会话(nc))= 0那么

''Cookies Off

否则

''饼干开启

结束如果

%>


但是我只在Microsoft Internet Explorer 6中测试过它,但不确定。

无论如何使用Microsoft Internet Explorer 5.5 SP2 Len(会话(nc))<> 0

始终是开启还是关闭cookie。任何人都可以建议一个更好的cookie

测试,它可以在大多数浏览器中使用吗?谢谢。


-

George Hester

__________________________________
See here. http://www.aspfaq.com/show.asp?id=2058

Ray at work

"George Hester" <he********@hotmail.com> wrote in message
news:es**************@TK2MSFTNGP11.phx.gbl...
I have always used this in ASP to test if the client is accepting cookies:

<%@language="VBScript"%>
<%
Session ("nc") = 1
If Len(Session("nc")) = 0 Then
''Cookies Off
Else
''Cookies On
End If
%>

But I only ever tested it in Microsoft Internet Explorer 6 though not sure.
Anyway with Microsoft Internet Explorer 5.5 SP2 Len(Session("nc")) <> 0
always whether cookies are on or off. Can anyone suggest a better cookie
test that will work in most browsers? Thanks.

--
George Hester
__________________________________


现在谢谢你的电话:

http://support.microsoft.com/default...b;en-us;323332


-

George Hester

__________________________________

" Ray at<%= sLocation%>" < myfirstname at lane34 dot com>在消息新闻中写道:uc ************** @ TK2MSFTNGP10.phx.gbl ...
Thanks on the phone now:

http://support.microsoft.com/default...b;en-us;323332

--
George Hester
__________________________________
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:uc**************@TK2MSFTNGP10.phx.gbl...
见这里。 http://www.aspfaq.com/show.asp?id= 2058年

Ray在工作中

George Hester <他******** @ hotmail.com>在消息中写道
新闻:es ************** @ TK2MSFTNGP11.phx.gbl ...
我一直在ASP中使用它来测试客户端是否是接受cookies:

<%@ language =" VBScript"%>
<%
会话(" nc")= 1
如果Len (会话(nc))= 0然后
''饼干关闭
其他
''饼干在
结束如果
%>

但我只是在Microsoft Internet Explorer 6中测试过它,但不确定。
无论如何使用Microsoft Internet Explorer 5.5 SP2 Len(会话(nc))<> 0
始终是开启还是关闭cookie。任何人都可以建议一个更好的cookie
测试,可以在大多数浏览器中使用吗?谢谢。


-
George Hester
__________________________________
See here. http://www.aspfaq.com/show.asp?id=2058

Ray at work

"George Hester" <he********@hotmail.com> wrote in message
news:es**************@TK2MSFTNGP11.phx.gbl...
I have always used this in ASP to test if the client is accepting cookies:

<%@language="VBScript"%>
<%
Session ("nc") = 1
If Len(Session("nc")) = 0 Then
''Cookies Off
Else
''Cookies On
End If
%>

But I only ever tested it in Microsoft Internet Explorer 6 though not sure.
Anyway with Microsoft Internet Explorer 5.5 SP2 Len(Session("nc")) <> 0
always whether cookies are on or off. Can anyone suggest a better cookie
test that will work in most browsers? Thanks.



--
George Hester
__________________________________


好吧,看起来修复这个永久ASP会话的唯一方法是转到Windows 2000中的SP4。哦伙计。我被告知SP4和MDAC 2.8不稳定。我所知道的是,我最后一次安装SP4时,我不喜欢结果。谢天谢地,我不是在MDAC 2.8。好吧,或者我可能会出去,然后回到你指出的方法。我曾经这样做,但我发现会话没有弹跳到ASP页面是最干净的方法。我想我会去那。 SP4目前风险太大。你知道这需要几乎完全重新设计网站,因为我在整个过程中使用ASP会话。


-

George Hester

__________________________________

" Ray at<%= sLocation%>" < myfirstname at lane34 dot com>在消息新闻中写道:uc ************** @ TK2MSFTNGP10.phx.gbl ...
Well it looks like the only way to fix this perpetual ASP session is by going to SP4 in Windows 2000. Oh man. I was told that SP4 and MDAC 2.8 are NOT stable. All I know is that the last time I installed SP4 I didn''t like the result. Thankfully I am not at MDAC 2.8. Well here goes or I might chicken out and go back to that method you pointed out. I used to do it that way but I found the Session without bouncing around to ASP pages to be the cleanest method. I think I''m going to that. SP4 is just too risky at this time. You know this takes almost a complete redesign of the site again becuase I use ASP session throughout.

--
George Hester
__________________________________
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:uc**************@TK2MSFTNGP10.phx.gbl...
见这里。 http://www.aspfaq.com/show.asp?id= 2058年

Ray在工作中

George Hester <他******** @ hotmail.com>在消息中写道
新闻:es ************** @ TK2MSFTNGP11.phx.gbl ...
我一直在ASP中使用它来测试客户端是否是接受cookies:

<%@ language =" VBScript"%>
<%
会话(" nc")= 1
如果Len (会话(nc))= 0然后
''饼干关闭
其他
''饼干在
结束如果
%>

但我只是在Microsoft Internet Explorer 6中测试过它,但不确定。
无论如何使用Microsoft Internet Explorer 5.5 SP2 Len(会话(nc))<> 0
始终是开启还是关闭cookie。任何人都可以建议一个更好的cookie
测试,可以在大多数浏览器中使用吗?谢谢。


-
George Hester
__________________________________
See here. http://www.aspfaq.com/show.asp?id=2058

Ray at work

"George Hester" <he********@hotmail.com> wrote in message
news:es**************@TK2MSFTNGP11.phx.gbl...
I have always used this in ASP to test if the client is accepting cookies:

<%@language="VBScript"%>
<%
Session ("nc") = 1
If Len(Session("nc")) = 0 Then
''Cookies Off
Else
''Cookies On
End If
%>

But I only ever tested it in Microsoft Internet Explorer 6 though not sure.
Anyway with Microsoft Internet Explorer 5.5 SP2 Len(Session("nc")) <> 0
always whether cookies are on or off. Can anyone suggest a better cookie
test that will work in most browsers? Thanks.



--
George Hester
__________________________________


这篇关于饼干测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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