Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SQL-server-2005 ASP ASP.NET SQL , +
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 29-May-12 22:41pm
Comments
RDBurmon at 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
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  
Comments
Rahul Rajat Singh at 30-May-12 4:29am
   
+5. nice answer.
Prasad_Kulkarni at 30-May-12 5:22am
   
:) Thank you,
Rate this: bad
good
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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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.
  Permalink  
Comments
Arunprasath Natarajan at 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
0 OriginalGriff 285
1 DamithSL 265
2 CPallini 195
3 Maciej Los 175
4 George Jonsson 170
0 OriginalGriff 5,415
1 DamithSL 4,422
2 Maciej Los 3,820
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,911


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 30 May 2012
Copyright © CodeProject, 1999-2014
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