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
How many types cache in asp net?
What do you mean by serialize?
How many web config files can be created for an application?
What is the difference between page-level caching and fragment caching?
What can you do with asp.net?
Which is better session or viewstate?
Which is faster viewdata or viewbag?
What is autopostback in dropdownlist in asp net?
What is the use of ASP.NET routing?
What are Master Pages in ASP.NET?
Explain automatic memory management in .net.
Which adapter should you use, if you want to get the data from an access database?
What is the application pool?
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
What are sessions and cookies?