if each page loads the login script, and the login script does a header() redirect then die() (or some other similar method) then it should be ok. If the script uses include() files, then they should always check to make sure they were not called directly (e.g. define a var in the master page, check for it in the included pages)
Remember boys and girls, always die() after a header() redirect call.