Hi,
I have made a working login script that checks stuff against a database and then redirects to the appropriate subdirectory if there is a username/password match. If match is found then session variable for the specific subdirectory is set and is continuously checked each time a protected page is requested later and checked again for a match or the user is kicked out.
I had a real hard time making this and I am sure there are ways to improve what I have. This is how I need your help.
Here is the login page code and the processing page (proc.php) code:
For starters is this a decent vailidation for initial access checking? Are there slicker ways of doing it?
Thanks - paul