Qus:    What is the difference between session object and application object?
Nov 05, 2020 11:20 DotNet 2 Answers Views: 1470 PADMAKEECHU

1) Session variables are used to store user specific information where as in application variables we can't store user specific information.



2) Default lifetime of the session variable is 20 mins and based on the requirement we can change it whereas application variables are accessible till the application ends.



3) Sessions allows information to be stored in one page and accessed in another, and it supports any type of object, including your own custom data types whereas application state allows you to store global objects that can be accessed by any client.

Prev Next
Answers (2)
RAMU Nov 06, 2020 08:07
Answer:   o The session object is used to maintain the session of each user.
o For example: If a user enters into the application then he will get a session id. If he leaves from the application then the session id is deleted. If he again enters into the application, he will get a different session id.
o But in the case of application object the id is maintained for whole application.

PARTH Nov 10, 2020 14:37
Answer:   1) Session variables are used to store user specific information where as in application variables we can't store user specific information.

2) Default lifetime of the session variable is 20 mins and based on the requirement we can change it whereas application variables are accessible till the application ends.

3) Sessions allows information to be stored in one page and accessed in another, and it supports any type of object, including your own custom data types whereas application state allows you to store global objects that can be accessed by any client.

Post Your Answer
Guest User

Not sure what solution is right for you?

Choose the right one for you.
Get the help of the experts and find a solution that best suits your needs.


Let`s Connect