What are the advantages of using session?

2 votes
151 views
Sunita  Singh asked 15-Nov-2017 in programming by Sunita Singh

What are the advantages of using session?

1 Answer

0 votes
Arti Mishra answered 07-Mar-2018 by Arti Mishra
There are many advantages of using session in our program, are as follows-
  • It is easy to implement and is just similar to using view state.
  • It stores user states and data to all over the application.
  • Accessing of data is very fast as it stores session data in memory object of the current application domain. 
  • It works in the multi-process configuration, thus ensures platform scalability.
  • Easy mechanism to implement and we can store any kind of object. 
  • Session is secure and transparent from user because session object is stored on the server.