Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 13402 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > ASP.NET Interview Questions > Can be disable session state for whole a ...

Can be disable session state for whole application if yes then how?

Interview question and answer by: Rajni.Shekhar | Posted on: 4/10/2012 | Category: ASP.NET Interview questions | Views: 705 | | Points: 40
Ads
Ads


Answer:

Yes, we can disable session state for whole application by setting in web.config file

<configuration>

<system.web>
<pages enableSessionState="false" />
</system.web>
</configuration>


But if you want to enable session state in perticular pages you can set enableSessionState="true" in page directives.

<%@ Page EnableSessionState="true" %>

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Rajni.Shekhar

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/19/2013 4:56:09 PM