Echo is used to print a string .
PHP script to view page only after login . If non logged-in user click on page it will get redirected to login page. This means non-logged in users will not have access to locked pages. In this Example you will learn how to use session management to hide a page and PHP headers redirect to another page in PHP.
Below is the code snippet