Knowledge Transfer

Wednesday, December 17, 2008

How to disable the Cookies in one web pages with in the project? and session in asp.net ?

i have posted two sample IMP questions for cookies and sessions

How to disable the Cookies in one web pages with in the project?
Using request.Cookies.discard

How to disable the session in one web page with in the project?

session state management in ASP.NET requires overhead. So, if a particular page will not be accessing the Session object, developers can set the EnableSessionState attribute of the Page directive for that page to False. If a particular page will be accessing the Session object and not altering the value of the session, then set the EnableSessionState attribute of the Page directive for that page to Readonly. Session state can be disabled for an entire site by setting the mode attribute of the sessionState element to Off in the Web.config.

Happy Coding,
Uday.adidham

Labels: , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home