If one user logs out from the page he must not be able to access other pages, and must be directed to log in page. How do I redirect one user after log out to the "log_in" page, using php?
Solution:
In the log_out.php you firstly destroy all sessions,
then using a header e.g.: "header('Location: index.php');"
you force the user to be redirected to the log_in.php or by " echo <script>window.location.assign('log_in.php')</script>". I have applied the second way
Comments