Qus:    What is the difference between session object and application object?
Nov 05, 2020 05:20 2 Answers Views: 102 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 02: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 08: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 course is right for you?

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


Let`s Connect