Difference between Application and session variable

/
0 Comments

Session

The session state is used to maintain the session of each user throughout the application. Session allows information to be stored in one page and access in another page and support any type of object.

  • Session state is unique to the client.
  • 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.
  • Session state is user and browser specific.
  • Session state has scope to the current browser only. If we change the browser session id is changed.
  • If client has disabled cookies in his browser then session state will be stored in URL.

Application Variable

Application variables are the variables which remain common for the whole application for all the users.

  • Application state is sharable among the clients.
  • Application state allows you to store global objects that can be accessed by any client.
  • Application state is application specific.
  • Application state is stored only in the memory on the server.
  • Application state does not track client's cookies or URL.
  • Application state has no scope to the current browser. If we change the browser application id remains same.



You may also like

No comments:

Powered by Blogger.