I'm building a site that has one authentication system for both general users and administrative users (using CodeIgniter and Tank Auth, for anyone interested). They are differentiated based on profile credentials. (Is this a secure approach?)
My question is, when a user accesses an area they do not have the credentials to view, what PHP functionality should I use to restrict access? My thoughts are either a 'redirect' or 'exit' function. What is the most secure approach?