I want to get user information in multiple pages so that I can show and hide the information on the basis of login user in multiple pages. Code
Once you stored role id into session. $_SESSION['role_id'] = $_GET['role_id'];
$_SESSION['role_id'] = $_GET['role_id'];
you can get role id to the pages after login then you can hide and show some information on the following:
If role is not present you can redirect to index page.