Sessions - cookieless for non-cookie users only

D

Daniel Malcolm

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
 
J

Joerg Jooss

Daniel said:
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top