Redirect after PHP Login

后端 未结 3 1426
我在风中等你
我在风中等你 2020-12-21 16:13

I have a subdomain

accounts.mysite.com

What i want is one login panel for that subdomain, then after a user logs in it directs them to their own page (and

3条回答
  •  星月不相逢
    2020-12-21 16:46

    Include a file at the top of every file that should be blocked that contains something like:

    This will redirect the user to user.php everytime they try to visit another file.

    Edit: And don't forget to use session_start() at the beginning of every request.

提交回复
热议问题