I'm hoping to improve the security of a site that I'm been creating over the past few days in order to learn codeignter.
I wanted to create a function that will check in person accessing the page in question is logged in and if not deny them access.
I'm unsure however of what the best approach would be to do this.
Should I add the new function in each model? Should I have a seperate model just for security that I would load each time?
Is there a better way of doing this that I haven't thought of?
Your input would be greatly appreciated!