Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
Dear Friends,

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

Regards,
AP
Posted
Comments
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.

InProc and OutProc is related to asp.net 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[^]
 
Share this answer
 
Comments
Rahul Rajat Singh 30-May-12 4:29am    
+5. nice answer.
Prasad_Kulkarni 30-May-12 5:22am    
:) Thank you,
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
 
Share this answer
 
Hi,

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.
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900