Home All Groups Group Topic Archive Search About

Disable Cookieless Sessions on Single Page?

Author
28 Mar 2005 4:28 PM
xenophon
I have specified in web.config to use cookieless Sessions. On one page
I do not want to use them because of the way they obfuscate the page
address. How can I turn it off for the page?

Thanks.

Author
28 Mar 2005 4:44 PM
Brock Allen
Cookieless session state management is an application wide setting.

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> I have specified in web.config to use cookieless Sessions. On one page
> I do not want to use them because of the way they obfuscate the page
> address. How can I turn it off for the page?
>
> Thanks.
>
Are all your drivers up to date? click for free checkup

Author
29 Mar 2005 3:13 AM
Steven Cheng[MSFT]
Hi xenophon,

I think Brock's right since the <sessionState> setting in the asp.net
application's configuration is a application wide setting which is not
avaible for per-page based scenario. Also, as it is mentioned in the MSDN
web.config schema reference:

#<sessionState> Element
http://msdn.microsoft.com/library/en-us/cpgenref/html/gngrfsessionstatesecti
on.asp?frame=true

We can only specify <sessionState> for a whole application in web.config or
machinel.config.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Bookmark and Share