Interview Question
Qus: What are the main advantages and disadvantages of inproc session?
Advantages of inproc session -
1. It is easiest option to implement because you don't need to configure anything. Just read and write session variables in code.
2. One more advantage of InProc mode is that you can put anything in session variables.
3. InProc mode works on shared web hosting.
Disadvantages of inproc session -
1. Reliability is first problem when using InProc.
2. Scalability is one more problem when using InProc mode.
3. Serialization/Deserialization is potential problem.
Answers (2)
1. It is easiest option to implement because you don't need to configure anything. Just read and write session variables in code.
2. One more advantage of InProc mode is that you can put anything in session variables.
3. InProc mode works on shared web hosting.
Disadvantages of inproc session -
1. Reliability is first problem when using InProc.
2. Scalability is one more problem when using InProc mode.
3. Serialization/Deserialization is potential problem.
2. It is always good for small web applications
Disadvantages of Inproc session are as follows
1. It we restart the web server or if any crashes to the web server there is a chance of losing the session data.
2. If the session data is increased there is a burden on the web server, it will affect the performance of web server and web application.
3. It is not suitable for large web application models like web-garden and web-farm.