Looking to redirect to my university's login page in order to authenticate users with $_SERVER['REMOTE_USER']. Conventionally, I would use an htaccess file to redirect to the login page, but I would like my solution to be completely in PHP. I imagine the start would be...
header('Location:http://login.university.edu');
But I would need to specify the return url, correct? I don't know. I may be completely wrong about this. Any help appreciated.