How many types of session in asp.net2.0

Answer Posted / sudhakarraoadapa

Session Management can be achieved in two ways

1)InProc
2)OutProc

OutProc is again two types
1)State Server
2)SQL Server


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

where they are stored.
1. inproc - default stored in web.config.
2. outproc - stored in server side.
3.Sql server - stored in database.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the main function of url routing system in asp.net mvc? : asp.net mvc

494


Where is asp.net view state stored?

520


What are the advantages of using sql stored procedures instead of adhoc sql queries in an asp.net web application?

583


What is viewstate? In which event of the page life cycle, is the viewstate available?

605


What are ASP.NET Web Forms? How is this technology different than what is available though ASP?

943






Is it possible to change the index of primary key on table?

412


What is the base class from which web forms are inherited?

528


What is routing in MVC?

599


What is IPostBack? How to use it?

602


Can you clarified A Web service can only be written in .NET or not?

542


In which event of page cycle is the viewstate available?

580


how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool

1644


What are the options in ASP.NET to maintain state?

619


What is asp.net globalization?

502


is gateway for sms continue connected for sending sms.how?

1833