Click here to Skip to main content
13,152,181 members (36,839 online)
Rate this:
Please Sign up or sign in to vote.
Dear Friends,

I am not aware in detail. But we use these modes in asp/ for state persistence.
what is inproc and outproc

Posted 29-May-12 21:41pm
RDBurmon 30-May-12 3:47am
Hello Arunprasath, Hope you have got answer for your question , but look the thread is still open. If you have implemented your solution and it worked fine for you and as per your expectation .Then add the solution here also and accept it by your own so that This question will mark as solved and other member get know the right solution if they have the same question. Agreed !!!. You can add it by using "Add solution" option.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

InProc and OutProc is related to session management.
Session can be maintained in 3 different ways as seen below.

InProc - session kept as live objects in web server (aspnet_wp.exe).
Use "cookieless" configuration in web.config to "munge" the sessionId onto the URL (solves cookie/domain/path RFC problems too!)

StateServer - session serialized and stored in memory in a separate process (aspnet_state.exe). State Server can run on another machine

SQLServer - session serialized and stored in SQL server

Please refer:
in-proc,out-proc and sql server.[^]

Detailed description: InProc and OutProc[^]
Rahul Rajat Singh 30-May-12 4:29am
+5. nice answer.
Prasad_Kulkarni 30-May-12 5:22am
:) Thank you,
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

This enables you to decide where you need sessions to be reside.

InProc - Session will reside on same computer memory where web application deployed

StateServer - Session will reside on other computer memory. you can specify the IP address of the PC

SQLServer - Session will be stored SQL server tables
Rate this: bad
Please Sign up or sign in to vote.

Solution 4


Inproc session mode,

1. session data is stored in current application domain and so consumes memory of server machine.

2. if server restarts, all session data is lost.

Out-proc mode (which is generally state server),

1. session data is stored on state server and so web servers memory is not consumed.

2. in case of web server restart, session data is preserved.

considering above points, use of session mode is the choice to be made considering load, no. of users, performence requirment etc.

for small web site with limited no. of users, in-proc mode is best suited.

for large applications with huge no. of users, state-server/sql server session mode should be used.
Arunprasath Natarajan 31-May-12 14:00pm
Thank u, I am clear

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170924.2 | Last Updated 17 Aug 2015
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100