I have been using this code and most of it appears to be working on my website. But, I have a clarification questions regarding the auth.php page. If the 'destroy' function happens at either end of the if statement, logically I don't understand. The login function works fine, but when I put the auth.php code on the pages I want to lock it only seems to run the 'destroy' function.
Thanks for this tutorial by the way, it really was simple and enlightening.
15 Replies - 61259 Views - Last Post: 26 September 2014 - 08:39 AM