The advantages of using session are:
- A session stores user states and data to all over the application.
- It is very easy to implement and we can store any kind of object.
- It can store every user data separately.
- Session is secure and transparent from user because session object is stored on the server.