Disabling cookies for one page in an ASP.Net site
I want to turn off cookies in one page of my ASP.Net site. How can I Do that
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kunal Naik163 reputationPosted Nov 3, 2011, 10:05 PM EDT
Use Cookie.Discard property and set cookie state false in your web.config file.
And for particular page, set EnableSessionState="False" in pageredirective of that page.
Suthish NairRank #92 · 22.8K reputationPosted Nov 6, 2011, 3:59 AM EST