I have created a login and register system in PHP. But I didn't use any sessions yet. After the user registers and fills out the login form, they will still stay on the same page. So, there will be one part of the which will be if the session is logged_in and the other part will be else the user is not logged in so display the login form. Can someone please help me with this I want to do this with the session?