473,389 Members | 1,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,389 software developers and data experts.

Check for Session Cookies?

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
Jul 23 '05 #1
11 6011
In article <ac**************************@posting.google.com >,
je*********@hotmail.com enlightened us with...
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.
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

Jul 23 '05 #2
kaeli wrote:
In article <ac**************************@posting.google.com >,
je*********@hotmail.com enlightened us with...
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.


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
Jul 23 '05 #3
kaeli wrote:
In article <ac**************************@posting.google.com >,
je*********@hotmail.com enlightened us with...
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.


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>

^^^^^^^^^^^^^^^^^
| 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
Jul 23 '05 #4
On Sun, 29 Aug 2004 18:10:12 +0200, Thomas 'PointedEars' Lahn
<Po*********@web.de> wrote:
kaeli wrote:
[snip]
A cookie is a cookie. A session cookie is just a cookie with no expires
date set so that it isn't stored.


Nonsense.


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

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

^^^^^^^^^^^^^^^^^
| 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.


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.
Jul 23 '05 #5
Thomas 'PointedEars' Lahn wrote:
<--snip-->

You have been warned.


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
Jul 23 '05 #6
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...
Mick
Jul 23 '05 #7
Mick White wrote:
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...


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
Jul 23 '05 #8
In article <Se********************@comcast.com>, Hi************@aol.com
enlightened us with...
Mick White wrote:
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...


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.


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

Jul 23 '05 #9
kaeli wrote:
In article <Se********************@comcast.com>, Hi************@aol.com
enlightened us with...
Mick White wrote:
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...
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.

He can mine, too, since I don't HAVE an ISP. ;)


He's going to babble about it *is* an ISP since it provides service to
the internet. He's a moron sometimes :)
I post from work. They WANT us to munge our addresses. *grins*
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.
He's been in my killfile for awhile. Ignore his "warnings".

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
Jul 23 '05 #10
Randy Webb wrote:
Thomas 'PointedEars' Lahn wrote:
You have been warned.


Before I go to the trouble of changing my From to an invalid address,
what are the repercussions of "being warned", [...]


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.
Jul 23 '05 #11
In a message read by Randy Webb <Hi************@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 <Hi************@aol.com> via GigaNews via Comcast Cable,
Thomas 'PointedEars' Lahn <Po*********@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:
Randy Webb wrote:

Thomas 'PointedEars' Lahn wrote:
You have been warned.


Before I go to the trouble of changing my From to an invalid address,
what are the repercussions of "being warned", [...]

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


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
Jul 23 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
0
by: Maverick | last post by:
Hello all, I read some good reviews about jakarta HTTPClient about its session and cookies management system and fancied giving it a try as a learning exercise but somehow I don't seem to be able...
3
by: PM | last post by:
I'm trying to make a kind of search history containing the 3 last searched words. So I'm using 3 Session Variables: Word1 / Word2 / Word3. In order to get this history working, I need to put the...
2
by: Amit D.Shinde | last post by:
Hello Experts.. I need some help regarding cookies and session objects and also global.asa file I am creating one cookie when a user logs in on my website. The cookie stores the login name of...
9
by: RA | last post by:
Hi Please review and let me know if I am correct: 1) My understanding from reading http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/ diforwc-ch05.asp is that...
7
by: Marcus | last post by:
I know that when you start a session in PHP, the "cookie" it creates is not the same as those that are stored in your browser's temp folder, and instead is kept in RAM. I am confused because in...
2
by: StanB | last post by:
I came across this weird problem: 1. Session state stops working after the app is deployed to another server because IE does not accept cookies. 2. It works if cookieless="true" in the...
3
by: dihola | last post by:
Hi, I have a website running in IIS7 and it seems to be creating a new session for every request I make. The values I store in Session are lost with every request. This is the forms bit in my...
3
by: =?Utf-8?B?Qkw=?= | last post by:
if (Request.Browser.Cookies) { // Cookies supported } else { // Web browser not supports cookies }
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.