Handle session is very important when creating a member-based website where the user needs to register and login to their account to access website content.
With the help of a session, it is easier to identify the user and display the content accordingly.
In Codeigniter, require the loading session library to start work with Session. There are inbuilt methods are available that makes easier to handle session operations.