.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

Where Session is Stored in ASP.NET?

Posted By :Syed Shakeer Hussain     Posted Date :October 27, 2010    Points :10   Category :ASP.Net 
There are three locations where a session can be stored :

1)InProc : If you set this mode, then session is stored in Web Server worker process(aspnet_wp.exe). This is by default and the performance is fast because it resides in the same worker process.

2)StateServer : If you set this mode, then session is stored in a separate process in the server called aspnet_state.exe.

3) SqlServer : If you set this mode, then session is Stored in SQL Server.

You can also find related Interview Question to Where Session is Stored in ASP.NET?  below: 

Where are shared assemblies stored in .NET?

Shared Assemblies are stored in Global Assembly Cache also known as GAC. (More...)

What is a Stored Procedure?

Its nothing but a set of T-SQL statements combined to perform a single task of several tasks. Its basically like a Macro so when you invoke the Stored procedure, you actually run a set of statements. (More...)

Differences between application and session.

The session object maintains state on a per client basis whereas the application object is on a per application basis and is consistent across all client requests. (More...)

Session state vs View state

In some cases, using view state is not feasible. The alternative for view state is session state. Session state is employed under the following situations:
. Large amounts of data - View state tends to increase the size of both the HTML page sent to the browser and the size of form posted back. Hence session state is used.
. Secure data - Though the view state data is encoded and may be encrypted, it is better and secure if no sensitive data is sent to the client. Thus, session state is a more secure option.
. Problems in serializing of objects into view state - View state is efficient for a small set of data. Other types like DataSet are slower and can generate a very large view state (More...)

what is different between session and application

session is a object that store information between http request for a paticular user.
->But application object are global for each user (More...)

Where are the ASP.NET configuration files stored?

System-wide configuration settings and some ASP.NET schema settings are stored in a file named Machine.config, which is located in the

%SystemRoot%\Microsoft .NET\Framework\versionNumber\CONFIG directory.

This directory also contains other default settings for ASP.NET Web applications in a file that is referred to as the root Web.config file. ASP.NET configuration files for individual Web sites and applications, which are also named Web.config files, can be stored in any Web site root directory, application root directory, application subdirectory, or all of these. For more information, see ASP.NET Configuration File Hierarchy. (More...)

Where is version information stored of an assembly ?

Version information is stored in assembly in manifest. (More...)

Where is image data loaded into ImageList controls actually stored in the project?

Each form has an associated resource file (with a .resx extension) where image data and localized strings are stored.You can see this by clicking the Show All Files icon in the Solution Explorer. (More...)

What are the differences among batches, stored procedures, and triggers?


A batch is a group of one or more SQL statements. SQL Server compiles the statements of a batch into a single executable unit, called an execution plan. The statements in the execution plan are then executed one at a time.

stored procedure :
A stored procedure is a group of SQL statements that is compiled one time and can then be executed many times.

A trigger is a special type of stored procedure that is not called directly. Trigger is fired each time row is affected by Insert, Update or Delete command.


How to remove a Session variable?

using HttpSessionState.Remove(); (More...)

Maximum Data that can be stored in a cookie?

Maximum 4 KB data can be store in a cookie. (More...)

How do you explicitly kill a user session?

To kill Session you have to use Session.Abandon() with this method we can explicitly kill a user session. (More...)

Is the session Timeout attribute a sliding timeout value?

The session Timeout is a sliding expiration time, meaning whever your page access session state, the expiration time will be moved forward. Please note that as long as a page has NOT disabled session state, it will access the session automatically when requested.

http://santoshdotnetarena.blogspot.com/ (More...)

What is the difference between Session.Abandon() and Session.Clear()?

The major practical difference is that if you call Session.Abandon(), Session_End will be fired (for InProc mode), and in the next request, Session_Start will be fired. Session.Clear( ) just clears the session data without killing it.

http://santoshdotnetarena.blogspot.com/ (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend