The PHP files can only control the PHP portion. Apache or IIS need to control the files that are not dealt with by the PHP Processor.
The session variables are not usually the weak link in the authentication/authorization process, it is more likely to be the authentication portion, as someone who is able to guess/brute hack a valid UID/password combination.