473,748 Members | 3,823 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<sessionState cookieless="tru e" />

What do you mean by a cookieless session state? When you set the
sessionState section's cookieless attribute to true in the web.config
file, what does that mean?

I read this
(http://msdn.microsoft.com/library/de...ateSection.asp)
and it does not explain the meaning of cookieless.

Nov 19 '05 #1
13 3559
It means that ASP.NET doesn't use cookies to maintain session state.

Instead, ASP.NET will maintain session state by inserting a random ID,
like : http://yourserver.com/(S(n1rpjs55dou...elloworld.aspx
in your URL.

Then, *that* ID identifies the state of your client's session,
instead of cookies being used to maintain session state.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Water Cooler v2" <wt*****@yahoo. com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
What do you mean by a cookieless session state? When you set the
sessionState section's cookieless attribute to true in the web.config
file, what does that mean?

I read this
(http://msdn.microsoft.com/library/de...ateSection.asp)
and it does not explain the meaning of cookieless.

Nov 19 '05 #2
aha! thanks! so, then it doesn't have anything to do with the fact that
I want to drop cookies on the client for other stuff such as UserID on
my own? I mean, other than the fact that the client browser user
cookies or not, it doesn't have anything to do with placing a
restriction on the developer to use cookies himself for storing
information on the client?

Nov 19 '05 #3
Also, is there a way we could check if a client has cookies
enabled/turned on or not?

Nov 19 '05 #4
Water Cooler v2,

"cookieless " means just that : no cookies at all!

With cookieless="tru e", you can still use a different method
to assign a way to follow a client's session, like a UserID,
as you mention, but you don't get to use cookies at all.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Water Cooler v2" <wt*****@yahoo. com> wrote in message
news:11******** ************@o1 3g2000cwo.googl egroups.com...
aha! thanks! so, then it doesn't have anything to do with the fact that
I want to drop cookies on the client for other stuff such as UserID on
my own? I mean, other than the fact that the client browser user
cookies or not, it doesn't have anything to do with placing a
restriction on the developer to use cookies himself for storing
information on the client?

Nov 19 '05 #5
If you set cookieless = "false", what you
can do is issue a cookie, and try to retrieve it.

If you can retrieve it, the client has cookies enabled;
if you can't retrieve it, the client doesn't have cookies enabled.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Water Cooler v2" <wt*****@yahoo. com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
Also, is there a way we could check if a client has cookies
enabled/turned on or not?

Nov 19 '05 #6
I am still confused. My question is,

With cookieless, are we telling the server

(1) Hey, look! I might use cookies if I like and if the client has them
enabled, but you, you don't get to use cookies to persist session
information;

or, are we telling the server

(2) The client is a moron. He's got his cookies turned off. Neither do
you, nor do I get any cookies. So, don't drop a cookie for persisting
session info, and I won't drop any cookies, too, because the "client
won't let me". Instead of baking session id into a cookie, just pass it
along the URL and I'll understand?

Nov 19 '05 #7
re:
I am still confused. My question is,
With cookieless, are we telling the server

(1) Hey, look! I might use cookies if I like and if the client has them
enabled, but you, you don't get to use cookies to persist session
information;
With "cookieless " your server doesn't get to use cookies at all,
as the name of the setting implies.

re: (2) The client is a moron. He's got his cookies turned off.
Setting cookieless ="true" means that you don't get to *send*
a cookie, regardless of whether the client has them enabled or not.

"cookieless " is a server setting, not a client setting.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Water Cooler v2" <wt*****@yahoo. com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .I am still confused. My question is,

With cookieless, are we telling the server

(1) Hey, look! I might use cookies if I like and if the client has them
enabled, but you, you don't get to use cookies to persist session
information;

or, are we telling the server

(2) The client is a moron. He's got his cookies turned off. Neither do
you, nor do I get any cookies. So, don't drop a cookie for persisting
session info, and I won't drop any cookies, too, because the "client
won't let me". Instead of baking session id into a cookie, just pass it
along the URL and I'll understand?

Nov 19 '05 #8
>Setting cookieless ="true" means that you don't get to *send*
a cookie, regardless of whether the client has them enabled or not.

That line explains it. Or, may be I just got my eureka from the
emphasis on *send*, as you typed it. So, it is the second case I
thought? The client is a moron one.

Thanks!

Nov 19 '05 #9
Oooops! Please ignore the previous message. I've been awake too long.
What I meant was that I got the eureka with the *send* in your message
and the eureka I got was that it was the first option I was thinking
of: "we tell the server that you don't get to use/send a cookie to the
client to persist session info. We don't know whether the client has
turned cookies on or off."

Nov 19 '05 #10

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

Similar topics

3
4562
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function Session_Start() { Session.Timeout = 3000; } in global.asax
2
7003
by: Water Cooler v2 | last post by:
What do you mean by a cookieless session state? When you set the sessionState section's cookieless attribute to true in the web.config file, what does that mean? I read this (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfSessionstateSection.asp) and it does not explain the meaning of cookieless.
0
8991
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
9541
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
9247
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
8242
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4602
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
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
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
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.