How many types of session in asp.net2.0

Answer Posted / jayant shahi

ASP.Net supports 4 types of sessions
1)in process (InProc)(The Default) Session state exists
within the process the web is using
2)state server (OutProc)Session data is sent to the
configured stateserver service
3)sql server (OutProc)Session data is store in the
configured sql server database
4)custom

InProc
Adv.:
1) Faster as session resides in the same process as the
application
2) No need to serialize the data

DisAdv.:
1) Will degrade the performance of the application if large
chunk of data is stored
2) On restart of IIS all the Session info will be lost

State Server
Adv.:
1) Faster then SQL Server session management
2) Safer then InProc. As IIS restart
won't effect the session data

DisAdv.:
1) Data need to be serialized
2) On restart of ASP.NET State Service session info will be lost
3)Slower as compared to InProc

SQL Server
Adv.:
1) Reliable and Durable
2) IIS and ASP.NET State Service
restart won't effect the session data
3) Good place for storing large chunk of data

DisAdv.:
1) Data need to be serialized
2) Slower as compare to InProc and State Server
3)Need to purchase Licensed
version of SQL Server

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the HTML server controls in ASP.NET?

805


What is asp.net ajax?

712


Which object is used to encapsulate the state of the client and the browser in ASP.NET?

790


Is it possible to write code in many languages in one asp.net project?

750


Describe the Server Control Events of ASP.NET?

879


Explain the namespace classes used in asp.net mvc? : asp.net mvc

724


What is a user developed application?

708


What are the advantages of asp.net?

723


Is oauth for authentication or authorization?

758


How ASP.NET page works?

851


How would ASP and ASP.NET applications run at the same time on the same server?

2171


What are the properties of the eventargs argument when capturing keyboard events?

796


Is data edited in the Repeater control?

784


Describe Segmentation With Paging?

804


Can we handle the error and redirect to some pages using web.config?

1246