Are there any potential issues that may arise if exit(); is not used after header('Location: login')?

If exit(); is not used after header('Location: login'), there is a possibility that the script will continue to execute after the header redirection, which could lead to unexpected behavior or errors. To prevent this, it is recommended to use exit(); after setting the header location to ensure that the script stops executing.

header('Location: login');
exit();