Session for multiple files when logged in?
<p>I have <strong>/admin/</strong> folder with multiple files in it that get POST/GET and do certain things with my data base. The question is do I need to do (<code>if $_SESSION['isAdmin'] == true</code>) at the beginning of every file to enable access to those files only to <strong>admin</strong> who is logged in or there is some another more optimal way? Thanks.</p>
