|
Answer» Advantages of using session: - It helps us to maintain user state/data.
- It is very easy to implement.
- A session can store any kind of object in it. : Example: datatable, dataset... etc.
- By using session we don't need to worry about data collapse because it stores every client data separately.
- A session is secure and TRANSPARENT from the user.
- It is a global storage mechanism which helps in accessing the value from all pages in the web application
- It is easy to use as session stores data in memory object of the current application domain.
- It stores the client data separately so there is no worry about data collapse
- It is secure and transparent from the user.
- It can work in the multi-PROCESS configuration.
- It always ENSURES data DURABILITY, since the session state RETAINS the data even if the works process restart
|