473,326 Members | 2,136 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,326 software developers and data experts.

sessionState and cookies

I want to use cookies on my website, simply to identify the user when
they come to my website (I will just be writing one for new users and
reading from people who are already users when they reach my home page).
Do I need to put cookieless="false" in my web.config sessionState tag,
or does it not matter (I usually use cookieless="true", but I never read
or write cookies). This is my usual sessionState :

<sessionState
mode="InProc"
cookieless="true"
timeout="20"
/>

Do I just stick with this?

Cheers,

Mike

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
2 1243
Hi Mike,

You can still use cookies if you have cookieless set to true. Cookieless
just means that the session state is not maintianed using cookies (but
instead with a URL: http://yourdomain.com/(23jvd93Vadf)/yourpage.aspx).

-- Alex Papadimoulis

"mike parr" <mp********@yahoo.co.uk> wrote in message
news:e6**************@TK2MSFTNGP09.phx.gbl...
I want to use cookies on my website, simply to identify the user when
they come to my website (I will just be writing one for new users and
reading from people who are already users when they reach my home page).
Do I need to put cookieless="false" in my web.config sessionState tag,
or does it not matter (I usually use cookieless="true", but I never read
or write cookies). This is my usual sessionState :

<sessionState
mode="InProc"
cookieless="true"
timeout="20"
/>

Do I just stick with this?

Cheers,

Mike

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2
Does this mean that with cookieless="true" I can read and write cookies
without the user having to have cookies enabled on their machine?
Mike

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

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

Similar topics

4
by: Adam | last post by:
Well guys some might consider this a silly topic but i just want to get the general consensus on the matter. So i ask the question "Which is more efficient to use Cookies or SessionState Variables...
1
by: MDB | last post by:
Hello, Is it possible to change the sessionState cookieless value to true dynamically if you detect that a user disabled their cookies in their browser?
2
by: Mauricio | last post by:
Hi! I´m trying to store some objects in the Session but the session object is lost when I use a Response.Redirect command. Using a debugger, I can see that there is an ...
2
by: ivanL | last post by:
In web.config, I can set SessionState mode to "Off" while using Forms authentication, they have 2 diff mechanisms, is this correct?
2
by: Philipp Schumann | last post by:
....BUT for _custom_ HttpHandlers. How can I do that? In my custom IHttpHandler, HttpContext.Current.Session is a null reference, and I can't use the session state. It is enabled in web.config...
13
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...
5
by: jb | last post by:
*Please* help --- I'm tearing my hair out. I want to use sessionstate in a webservice, accessed from a client, written in script (JScript, InfoPath). I have written my webservice (C# .NET). I...
2
by: ravisingh11 | last post by:
<authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" timeout="30" cookieless="AutoDetect" /> </authentication> Over here we can specify cookiless to be auto detect so...
0
by: Nick K. | last post by:
We have an ASP.Net 2.0 web application that uses cookies for the sessionState. We have a login page that the user initially logs into and when the sessionState expires. I tracked down all that...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.