Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is in a session cookie?

968


What is the purpose of App_Code folder in ASP.NET? Why we this?

1249


What are the differences between code behind and code inline?

1090


What is a uri query?

993


Why is this service branded with windows livetm?

1074


Explain the use of errorprovider control in .net?

960


Can you explain architecture of your project ?

1119


What are the major built-in objects in ASP.NET?

1093


What is server side in asp.net?

979


How do we assign page-specific attributes?

1133


From which base class all web forms are inherited?

974


Disable browser cache for entire ASP.NET website?

1206


What are Master Pages in ASP.NET? or What is a Master Page?

1125


Is razor a programming language?

988


Diff between web user control and web custom control?

959