检查会话Cookie? [英] Check for Session Cookies?

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

问题描述

有没有办法检查用户是否有会话cookie

启用?


我知道怎么检查他们是否有一般情况下启用cookies,

但你如何测试会话cookie?


谢谢


Jen

Is there a way to check for to see if the user has session cookies
enabled?

I know how to check to see if they have cookies in general enabled,
but how do you test for just session cookies?

Thanks

Jen

推荐答案

在文章< ac ************************* *@posting.google.com>,
je ********* @ hotmail。 com 启发我们...
In article <ac**************************@posting.google.com >,
je*********@hotmail.com enlightened us with...
有没有办法检查用户是否启用了会话cookie?

我知道如何检查一般是否启用了Cookie,
但是如何测试会话cookie?
Is there a way to check for to see if the user has session cookies
enabled?

I know how to check to see if they have cookies in general enabled,
but how do you test for just session cookies?




Cookie是一个cookie。会话cookie只是一个没有过期日期的cookie

设置,以便它不被存储。

您通过写一个并尝试获取值来检查。如果可以,你很好

去。


用户可以启用会话cookie并禁用已保存的cookie,但是如果你

写一个会话cookie并且可以检索该值,他们已经启用了会话

cookie。


-

-

~kaeli~

百慕大三角厌倦了温暖的天气。它转移到

芬兰。现在圣诞老人不见了。
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace



A cookie is a cookie. A session cookie is just a cookie with no expires date
set so that it isn''t stored.
You check by writing one and trying to get the value. If you can, you''re good
to go.

Users might enable session cookies and disable saved cookies, but if you
write a session cookie and can retrieve the value, they''ve got session
cookies enabled.

--
--
~kaeli~
The Bermuda Triangle got tired of warm weather. It moved to
Finland. Now Santa Claus is missing.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace


kaeli写道:
kaeli wrote:
在文章< ac *********** ***************@posting.google.com>,
je ********* @ hotmail.com 启发我们...
In article <ac**************************@posting.google.com >,
je*********@hotmail.com enlightened us with...
有没有办法检查用户是否有会话cookie
已启用?

我知道如何检查他们是否通常启用了Cookie,
但是如何测试会话Cookie?
Is there a way to check for to see if the user has session cookies
enabled?

I know how to check to see if they have cookies in general enabled,
but how do you test for just session cookies?



cookie是一个cookie。会话cookie只是一个没有过期日期的cookie,因此它不会被存储。



A cookie is a cookie. A session cookie is just a cookie with no expires
date set so that it isn''t stored.




废话。如果用户允许将会话cookie设置为* b $ b,则会始终*存储会话cookie(否则它将无用)。特别之处在于,它会在UA会话结束时(UA退出)最后到期(通常在浏览器窗口的最后一个实例时为b / b
)或者属于UA的标签是

关闭。要这样做,它的到期时间必须是设置为

的那一天的日期(这意味着Max-Age标头的值为0,或当前的本地

。在Expires /expires标题/选项中的日期,或者过期/过期的当前本地日期的过去日期。标题/选项,或

标题/选项必须省略(因为会话cookie是默认值)。

UAs允许在到期前丢弃cookie,因为有限的

存储空间。


< http://wp.netscape.com/newsref/std/cookie_spec.html>

< http://www.ietf.org/rfc/rfc2109.txt>

PointedEars



Nonsense. A session cookie is *always* stored if the user allows it to be
set (otherwise it would be useless). What makes it special is that it
expires at the latest when the UA session ends ("the UA exits), often when
the last instance of a browser window or tab that belongs to the UA is
closed. To do so, its expiry must be the date of the moment when it is
set (which means a value of 0 for the Max-Age header, or the current local
date in the Expires/"expires" header/option), or a date in the past of the
current local date for the Expires/ "expires" header/option, or the
header/option must be omitted (because session cookies are the default).
UAs are allowed to discard a cookie prior to the expiry because of finite
storage space.

<http://wp.netscape.com/newsref/std/cookie_spec.html>
<http://www.ietf.org/rfc/rfc2109.txt>
PointedEars


kaeli写道:
kaeli wrote:
文章< ac ************************** @ posting.google.com>,
je*********@hotmail.com 启发我们......
In article <ac**************************@posting.google.com >,
je*********@hotmail.com enlightened us with...
有没有办法检查用户是否启用了会话cookie?

我知道如何检查他们是否有cookie一般启用,
但是如何测试会话cookie?
cookie是一个cookie。会话cookie只是一个没有过期日期的cookie,因此它不会被存储。
Is there a way to check for to see if the user has session cookies
enabled?

I know how to check to see if they have cookies in general enabled,
but how do you test for just session cookies?
A cookie is a cookie. A session cookie is just a cookie with no expires
date set so that it isn''t stored.




废话。如果用户允许将会话cookie设置为* b $ b,则会始终*存储会话cookie(否则它将无用)。特别之处在于,它会在UA会话结束时(UA退出)最后到期(通常在浏览器窗口的最后一个实例时为b / b
)或者属于UA的标签是

关闭。要这样做,它的到期时间必须是设置为

的那一天的日期(这意味着Max-Age标头的值为0,或当前的本地

。在Expires /expires标题/选项中的日期,或者过期/过期的当前本地日期的过去日期。标题/选项,或

标题/选项必须省略(因为会话cookie是默认值)。

UAs允许在到期前丢弃cookie,因为有限的

存储空间。


< http://wp.netscape.com/newsref/std/cookie_spec.html>

< http://www.ietf.org/rfc/rfc2109.txt>


和BTW:

来自:kaeli< ti * ***** @ NOSPAM.comcast.net>



Nonsense. A session cookie is *always* stored if the user allows it to be
set (otherwise it would be useless). What makes it special is that it
expires at the latest when the UA session ends ("the UA exits), often when
the last instance of a browser window or tab that belongs to the UA is
closed. To do so, its expiry must be the date of the moment when it is
set (which means a value of 0 for the Max-Age header, or the current local
date in the Expires/"expires" header/option), or a date in the past of the
current local date for the Expires/ "expires" header/option, or the
header/option must be omitted (because session cookies are the default).
UAs are allowed to discard a cookie prior to the expiry because of finite
storage space.

<http://wp.netscape.com/newsref/std/cookie_spec.html>
<http://www.ietf.org/rfc/rfc2109.txt>

And BTW:
From: kaeli <ti******@NOSPAM.comcast.net>



^^^^^^^^^^^^^^^^^

|验证< ti ****** @ NOSPAM.comcast.net> ......

| NOSPAM.comcast.net的邮件交换机:

|没有。尝试记录......

|无,因此< ti ****** @ NOSPAM.comcast.net>

|绝对不是一个电子邮件地址(没有MX)。


< http://www.ietf.org/rfc/rfc1036.txt> ;,第2.1.1和2.2节.1

< http://www.ietf.org/rfc/rfc2822.txt> ;,第3.4节

< http://www.ietf.org /rfc/rfc1855.txt> ;, 3.1.1节

< http://www.comcast.net/terms/use.jsp> ;, section禁止使用

和活动",第xviii段。


您已收到警告。

PointedEars


^^^^^^^^^^^^^^^^^
| Verifying <ti******@NOSPAM.comcast.net> ...
| Mail exchanger(s) for NOSPAM.comcast.net:
| None. Trying A record ...
| None, thus <ti******@NOSPAM.comcast.net>
| is definitely not an e-mail address (no MX).

<http://www.ietf.org/rfc/rfc1036.txt>, sections 2.1.1 and 2.2.1
<http://www.ietf.org/rfc/rfc2822.txt>, section 3.4
<http://www.ietf.org/rfc/rfc1855.txt>, section 3.1.1
<http://www.comcast.net/terms/use.jsp>, section "Prohibited Uses
and Activities", paragraph xviii.

You have been warned.
PointedEars


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

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