0
How to prevent a user from directly accessing my php page by writing URL?
If a person writes correct username and password, it redirects to home.php page. Now my problem is that if a person write the URL directly for home.php , he will be able to access it, without any login.
1 Odpowiedź
+ 2
On that page you need to check if that user is allowed there.
Like saving an access token in a coockie or local storage which needs to be send to your page to verify him.