Differences between session state and Application state?

Answers were Sorted based on User's Feedback



Differences between session state and Application state?..

Answer / n.v.s prasad

The Difference Between Sessionstate And Application state
is i)Session state is about particular user which is
available in every page of site.
ii)Application state is Available to every user in
Every page of the site.

Is This Answer Correct ?    72 Yes 6 No

Differences between session state and Application state?..

Answer / samba

Session state is unique to the client

where as

Application state is sharable among the clients

Is This Answer Correct ?    55 Yes 2 No

Differences between session state and Application state?..

Answer / vino

Session state and Application state both are support the
same type of objects and maintain information on the server.

Session state:
- The session object is used to maintain the session of each
user. A user gets a session id when he enters in to an
application. This Id will delete when he leave from that
application. If he enters again he will get a different
session Id.
- Session allows information to be stored in one page and
access in another page and support any type of object.

Application state:

- But the application object, the Id is maintained for whole
application.
- Application state allows storing global objects that can
be accessed by any client.

Is This Answer Correct ?    17 Yes 2 No

Differences between session state and Application state?..

Answer / sanjay vishwakarma

Application state will be available to all users of the
application when set
Basically user A sets application variable "AppID" to "myApp"
User B retrieves application variable "AppID" and reads "myApp"



Session state will only be available to a specific user of
the ASP.net application

User A sets session variable "UserID" to "2"
User B loads the session variable "UserID" and receives null
User A loads the session variable "UserID" and receives "2"

Is This Answer Correct ?    4 Yes 0 No

Differences between session state and Application state?..

Answer / bibbhuti prasad

session:
session is about particular user.
application:
it is available all users.

Is This Answer Correct ?    3 Yes 0 No

Differences between session state and Application state?..

Answer / chswapna

session is single user.
application is a multi user.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

What method must be overridden in a custom control? a) The Paint() method b) The Control_Build() method c) The Render() method d) The default constructor

1 Answers   Icertis, Microsoft, Syntax Softtech,


What is the result when the Web Form containing the following line is complied and executed? <asp:Button id=?thebutton? onClick=?theEvent? /> a) The button control is created; theEvent is the click event handler. b) Compiler error; the control must be set to runat=?server?. c) Compiler error; onClick is not a valid attribute. d) Runtime Exception; the control must be set to runat=?server?.

3 Answers   Syntax Softtech,


What property must you set, and what method must you call in your code, in order to bind the data from a data source to the Repeater control?

1 Answers   Siebel,


What is X-Path?

2 Answers   Sherston,


What is the Web.config file used for? a) To store the global information and variable definition for the application. b) Configures the time that the server-side codebehind module is called c) To Configure the Web Server. d) To Configure the Web browser.

8 Answers   HCL, IBM, Syntax Softtech, Vypin, WideVision Technologies,






Explain the updatepanel?

0 Answers  


When should we use abtract class and Interface Class?Give an Example

4 Answers   Accenture, Cap Gemini, L&T, RM,


Is asp.net 64-bit enabled? How?

0 Answers  


Describe the master page.

0 Answers  


What is query string in asp.net?

0 Answers  


Types of caching. How to implement caching?

2 Answers   Microsoft,


How can i include both C# and vb.net classes in same solution?

2 Answers  


Categories