How many types of sessions are there?

Answers were Sorted based on User's Feedback



How many types of sessions are there?..

Answer / sushil

asp.net supports 2 types of sessions
inprocess:session maintained by application domain[default]

outprocess:session maintained outside application
domainexternal to worker process.the external process can be:-

(i)state server:is a service of o/s which comes with .net
installation.this supports temopary storage.

(ii)sqlserver:persistent storage is supported.

(iii)custom:requires manual coding

cookieless session:it is a concept of providing sessionid to
client by appending to url.

Is This Answer Correct ?    11 Yes 0 No

How many types of sessions are there?..

Answer / braj bhasker singh

Four Types of Session Types-

1. InProc mode- which stores session state in memory on the
Web server. This is the default.
2.StateServer mode- which stores session state in a
separate process called the ASP.NET state service. This
ensures that session state is preserved if the Web
application is restarted and also makes session state
available to multiple Web servers in a Web farm.

3.SQLServer mode- stores session state in a SQL Server
database. This ensures that session state is preserved if
the Web application is restarted and also makes session
state available to multiple Web servers in a Web farm.

4.Custom mode- which enables you to specify a custom
storage provider.

5. Off mode- which disables session state.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is a PostBack? What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState? Why is it either useful or evil?

3 Answers   TCS,


Who generates session id?

0 Answers  


What is validationsummary server control? where it is used ?

1 Answers  


what is aspcompat? what it does?

1 Answers  


What is advantage and disadvantage of viewstate

3 Answers  






what is Satellite Assembly?

2 Answers  


How Can assign alias name for ASP.NET Web API Action?

0 Answers  


What is the use of placeholder control? Can we see it at runtime?

0 Answers  


What are the events that happen when a client requests an asp.net page from iis server?

0 Answers  


Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler?

3 Answers   Visual Soft,


How To Authenticate Your Web service??

1 Answers  


How do you manage session in ASP and ASP.NET?

1 Answers   Microsoft,


Categories