Ok everyone here has been extremely helpful in making this program work, now that I have built the database and the login script and the profile entry pages, now I have another dilemma.
This question is for all of those folks that love to explain things.
I want the site to be a members only site. I figured out and have tested somethings with SESSIONS and I am impressed at how easy it is to use- beats having to script all the cookie crap.
The main problem I have now is that once someone logs in, it creats a session or picks up the last session. BUT if their account expires or I ban that person, how can I stop him from going to pages that he has bookmarked?
The session script I have basically looks for session variables that check to see if the user is authorized for a particular page. If he has bookmarked the page and returns, he could go right to the page because the session stil exists on his machine.
Will I have to include a session script that verifies the variables against the Database each and every page? That seems to be a bad thing, load-time wise.
Also- this bugs me too- How can I make a session last only as long as he has the browser open? Is it possible to have a session auto-destruct when the browser is closed? I knwo i can do the get/post method of passing variables age to page and that would prevent it, but that gets tedious.
Any Suggestions?