473,625 Members | 2,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6033
In article <ac************ **************@ posting.google. com>,
je*********@hot mail.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*********@hot mail.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.htm l>
<http://www.ietf.org/rfc/rfc2109.txt>
PointedEars
Jul 23 '05 #3
kaeli wrote:
In article <ac************ **************@ posting.google. com>,
je*********@hot mail.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.htm l>
<http://www.ietf.org/rfc/rfc2109.txt>

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

^^^^^^^^^^^^^^^ ^^
| Verifying <ti******@NOSPA M.comcast.net> ...
| Mail exchanger(s) for NOSPAM.comcast. net:
| None. Trying A record ...
| None, thus <ti******@NOSPA M.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*********@we b.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******@NOSPA M.comcast.net>

^^^^^^^^^^^^^^^ ^^
| Verifying <ti******@NOSPA M.comcast.net> ...
| Mail exchanger(s) for NOSPAM.comcast. net:
| None. Trying A record ...
| None, thus <ti******@NOSPA M.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.javas cript 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.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #8
In article <Se************ ********@comcas t.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************ ********@comcas t.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.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #10

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

Similar topics

27
7109
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 a user from information you got from the session. Each secure app on a site must challenge the user for name and password, each and every time the user accesses it (not just once and then store it in the session). If a secure app is multi-page,...
0
14692
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 to get it to work properly. I'm basically trying to connect to this site http://s1.starkingdoms.com/scripts/main.php I am able to get past the authentication login page onto the next screen but I then can't proceed any further because of...
3
3536
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 last searched word in the following Variable. Ex.: Session("Word3") = Session("Word2") Session("Word2") = Session("Word1")
2
3334
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 the user. I want that cookie should get deleted when user closes the browser without signing out. I think it is done in global.asa file . But i don;t know how to do it?
9
1954
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 asp.net uses cookies to store the user session id, but if cookies are not enabled then it will send the session id as part of the url. Is this correct?
7
2000
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 every session tutorial I have ever read, the author invariably mentions the 2 main ways of propagating sessions - through cookies and appended to the URL. The author also almost always talks about the method being dependent on the user's...
2
4999
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 web.config 3. Yes, I tried IE - Tools - Privacy - Accept All Cookies and also Override automatic cookie handling, Always allow session cookes
3
4991
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 web.config: <authentication mode="Forms"> <forms name=".ReMaCRM" loginUrl="~/Login.aspx" defaultUrl="~/Default.aspx" cookieless="AutoDetect" domain="" timeout="10" protection="All" /> </authentication>
3
7778
by: =?Utf-8?B?Qkw=?= | last post by:
if (Request.Browser.Cookies) { // Cookies supported } else { // Web browser not supports cookies }
0
8251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8688
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8635
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8352
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4085
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2614
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.