By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,040 Members | 1,815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,040 IT Pros & Developers. It's quick & easy.

Sessions - cookieless for non-cookie users only

P: n/a
Hi

I just wanted to confirm that the "cookieless" attribute of the session
section of the web.config file is an "all or nothing" setting.

For some reason I thought that the following was the case:

If "cookieless" is set to false then ...

- If user's browser supports cookies then cookie is used to track Session
state
- If user's browser doesn't support cookies then cookieless mode (session id
added to url) is used to track Session state

but if "cookieless" is set to true then ...

- cookieless mode (session id added to url) is always used to track Session
state
I'm probably wrong though, as I've done a few tests and if I disable cookies
and set cookieless to "false" then Session state cannot be stored.

Thanks
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Yes, it is an all or nothing set. It is either on, or off - for everyone.

"Daniel Malcolm" <da************@nup.jpigroup.com> wrote in message
news:e8****************@TK2MSFTNGP11.phx.gbl...
Hi

I just wanted to confirm that the "cookieless" attribute of the session
section of the web.config file is an "all or nothing" setting.

For some reason I thought that the following was the case:

If "cookieless" is set to false then ...

- If user's browser supports cookies then cookie is used to track Session
state
- If user's browser doesn't support cookies then cookieless mode (session id added to url) is used to track Session state

but if "cookieless" is set to true then ...

- cookieless mode (session id added to url) is always used to track Session state
I'm probably wrong though, as I've done a few tests and if I disable cookies and set cookieless to "false" then Session state cannot be stored.

Thanks

Nov 19 '05 #2

P: n/a
Daniel Malcolm wrote:
Hi

I just wanted to confirm that the "cookieless" attribute of the
session section of the web.config file is an "all or nothing" setting.

For some reason I thought that the following was the case:

If "cookieless" is set to false then ...

- If user's browser supports cookies then cookie is used to track
Session state
- If user's browser doesn't support cookies then cookieless mode
(session id added to url) is used to track Session state

[...]

That's how servlet containers work. In ASP.NET, it's "all or nothing".

Cheers,

--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.