Connecting Tech Pros Worldwide Forums | Help | Site Map

Check for Session Cookies?

Jennifer
Guest
 
Posts: n/a
#1: Jul 23 '05
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
kaeli
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Check for Session Cookies?


In article <ac419b20.0408261101.69547494@posting.google.com >,
jen_designs@hotmail.com enlightened us with...[color=blue]
> 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?
>[/color]

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

Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Check for Session Cookies?


kaeli wrote:
[color=blue]
> In article <ac419b20.0408261101.69547494@posting.google.com >,
> jen_designs@hotmail.com enlightened us with...[color=green]
>> 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?[/color]
>
> A cookie is a cookie. A session cookie is just a cookie with no expires
> date set so that it isn't stored.[/color]

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
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#4: Jul 23 '05

re: Check for Session Cookies?


kaeli wrote:
[color=blue]
> In article <ac419b20.0408261101.69547494@posting.google.com >,
> jen_designs@hotmail.com enlightened us with...[color=green]
>> 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?[/color]
>
> A cookie is a cookie. A session cookie is just a cookie with no expires
> date set so that it isn't stored.[/color]

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:
[color=blue]
> From: kaeli <tiny_one@NOSPAM.comcast.net>[/color]
^^^^^^^^^^^^^^^^^
| Verifying <tiny_one@NOSPAM.comcast.net> ...
| Mail exchanger(s) for NOSPAM.comcast.net:
| None. Trying A record ...
| None, thus <tiny_one@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
Michael Winter
Guest
 
Posts: n/a
#5: Jul 23 '05

re: Check for Session Cookies?


On Sun, 29 Aug 2004 18:10:12 +0200, Thomas 'PointedEars' Lahn
<PointedEars@web.de> wrote:
[color=blue]
> kaeli wrote:[/color]

[snip]
[color=blue][color=green]
>> A cookie is a cookie. A session cookie is just a cookie with no expires
>> date set so that it isn't stored.[/color]
>
> Nonsense.[/color]

You know very well that Kaeli was simply stating that there is no
permanent storage of session cookie data.

[snip]
[color=blue]
> And BTW:
>[color=green]
>> From: kaeli <tiny_one@NOSPAM.comcast.net>[/color]
> ^^^^^^^^^^^^^^^^^
> | Verifying <tiny_one@NOSPAM.comcast.net> ...
> | Mail exchanger(s) for NOSPAM.comcast.net:
> | None. Trying A record ...
> | None, thus <tiny_one@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.[/color]

If you think that Kaeli is violating her terms of service by adding,
NOSPAM., to the domain, you should stop taking whatever drugs you're on.
Comcast actually *suggest* address munging when posting to Usenet and
other public locations where address harvesting could occur. You're
delusional if you think that Comcast, or any ISP, will terminate a
member's account for protecting their inbox.

Post useful messages, not pedantic drivel that no-one, other than
yourself, could give a toss about.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Randy Webb
Guest
 
Posts: n/a
#6: Jul 23 '05

re: Check for Session Cookies?


Thomas 'PointedEars' Lahn wrote:


<--snip-->
[color=blue]
>
> You have been warned.[/color]

Before I go to the trouble of changing my From to an invalid address,
what are the repercussions of "being warned", or, are you just spouting
babbling nonsense again?

I think you are full of it. So, what happens if I get warned and do not
change my behavior to fit your percieved pattern of reality?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Mick White
Guest
 
Posts: n/a
#7: Jul 23 '05

re: Check for Session Cookies?


Randy Webb wrote:
[color=blue]
> <--snip-->
>[/color]
[color=blue]
> I think you are full of it. So, what happens if I get warned and do not
> change my behavior to fit your percieved pattern of reality?
>[/color]
The Huns are known for their swift retaliations...
Mick
Randy Webb
Guest
 
Posts: n/a
#8: Jul 23 '05

re: Check for Session Cookies?


Mick White wrote:[color=blue]
> Randy Webb wrote:
>[color=green]
>> <--snip-->
>>[/color]
>[color=green]
>> I think you are full of it. So, what happens if I get warned and do
>> not change my behavior to fit your percieved pattern of reality?
>>[/color]
> The Huns are known for their swift retaliations...[/color]

Yeah, but that Hun has no retaliation to retaliate with. His biggest
threat is to "report violators to their ISP", in which case he can KMA.


--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
kaeli
Guest
 
Posts: n/a
#9: Jul 23 '05

re: Check for Session Cookies?


In article <Seydnf_jtvgmvq_cRVn-rw@comcast.com>, HikksNotAtHome@aol.com
enlightened us with...[color=blue]
> Mick White wrote:[color=green]
> > Randy Webb wrote:
> >[color=darkred]
> >> <--snip-->
> >>[/color]
> >[color=darkred]
> >> I think you are full of it. So, what happens if I get warned and do
> >> not change my behavior to fit your percieved pattern of reality?
> >>[/color]
> > The Huns are known for their swift retaliations...[/color]
>
> Yeah, but that Hun has no retaliation to retaliate with. His biggest
> threat is to "report violators to their ISP", in which case he can KMA.
>
>
>[/color]

He can mine, too, since I don't HAVE an ISP. ;)
I post from work. They WANT us to munge our addresses. *grins*

He's been in my killfile for awhile. Ignore his "warnings".

--
--
~kaeli~
If you don't pay your exorcist, you get repossessed.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Randy Webb
Guest
 
Posts: n/a
#10: Jul 23 '05

re: Check for Session Cookies?


kaeli wrote:[color=blue]
> In article <Seydnf_jtvgmvq_cRVn-rw@comcast.com>, HikksNotAtHome@aol.com
> enlightened us with...
>[color=green]
>>Mick White wrote:
>>[color=darkred]
>>>Randy Webb wrote:
>>>
>>>
>>>><--snip-->
>>>>
>>>>I think you are full of it. So, what happens if I get warned and do
>>>>not change my behavior to fit your percieved pattern of reality?
>>>>
>>>
>>> The Huns are known for their swift retaliations...[/color]
>>
>>Yeah, but that Hun has no retaliation to retaliate with. His biggest
>>threat is to "report violators to their ISP", in which case he can KMA.
>>
>>
>>[/color]
>
>
> He can mine, too, since I don't HAVE an ISP. ;)[/color]

He's going to babble about it *is* an ISP since it provides service to
the internet. He's a moron sometimes :)
[color=blue]
> I post from work. They WANT us to munge our addresses. *grins*[/color]

That is the advice given by Comcast as well. My service is through
giganews via Comcast. Comcast is Giganews' customer, not me. So to try
to "report" me, he has to report Comcast, and then attempt (futiley) to
get them to cancel/action my account.
[color=blue]
> He's been in my killfile for awhile. Ignore his "warnings".[/color]


I had him in mine for a while, then removed him so I could
correct/countermand his garbage babbling.


--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#11: Jul 23 '05

re: Check for Session Cookies?


Randy Webb wrote:
[color=blue]
> Thomas 'PointedEars' Lahn wrote:[color=green]
>> You have been warned.[/color]
>
> Before I go to the trouble of changing my From to an invalid address,
> what are the repercussions of "being warned", [...][/color]

I have already explained it but, obviously, it was too difficult for you
to understand.


PointedEars
--
"WHAT CAN THE HARVEST HOPE FOR, IF NOT FOR THE CARE OF THE REAPER MAN?",
said Death.
Randy Webb
Guest
 
Posts: n/a
#12: Jul 23 '05

re: Check for Session Cookies?


In a message read by Randy Webb <HikksNotAtHome@aol.com> on or around
September 19, 2004 (19 September 2004 for those inclined to read Dates
that way) in the newsgroup comp.lang.javascript that is subsribed to by
said Randy Webb <HikksNotAtHome@aol.com> via GigaNews via Comcast Cable,
Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote in response to a
message that can be found at the URL:
http://groups.google.com/groups?hl=e...UTF-8%26sa%3DN
and after 22 days decided to reply:
[color=blue]
> Randy Webb wrote:
>
>[color=green]
>>Thomas 'PointedEars' Lahn wrote:
>>[color=darkred]
>>>You have been warned.[/color]
>>
>>Before I go to the trouble of changing my From to an invalid address,
>>what are the repercussions of "being warned", [...][/color]
>
>
> I have already explained it but, obviously, it was too difficult for you
> to understand.[/color]

Nah, whats too difficult to understand is why you can't comprehend that
it doesn't matter, that its *highly* encouraged by my ISP (and many
others), yet you continue to complain about it.

The *true* repercussions if I decided to do it are *none*.

So, let me explain it again. You ready?

I subscribe to this group via Comcast Cable's Giganews account. It means
I have a sub-account of Comcast. So, if you *were* to report me (which I
don't care about), then you would have to get Giganews to action
Comcast, which isn't going to happen.

The only other possible repercussion would be you kill-filing me. But
thats not a bad thing, its a good thing. Because then, I could
correct/countermand your babbling without having to worry about you
responding with more babble about how it "destroys the internet". Geez.

GFY

P.S. Now you know what a semi-attribution novel looks like.

P.S.S GFY refers to inserting certain appendages into certain orifices
of your body.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Closed Thread


Similar JavaScript / Ajax / DHTML bytes