467,175 Members | 1,343 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,175 developers. It's quick & easy.

Sessions - cookieless for non-cookie users only

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
  • viewed: 1711
Share:
2 Replies
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
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.

Similar topics

2 posts views Thread by JV | last post: by
4 posts views Thread by Leigh | last post: by
7 posts views Thread by Ron Vecchi | last post: by
2 posts views Thread by xenophon | last post: by
2 posts views Thread by thinkfr33ly@gmail.com | last post: by
6 posts views Thread by Logician | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.