Unable to get login user information in multiple php pages

前端 未结 3 2344
暖寄归人
暖寄归人 2021-01-28 22:26

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

    

        
3条回答
  •  梦谈多话
    2021-01-28 23:09

    Once you stored role id into session. $_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.

提交回复
热议问题