How are you having this person log on? Are you using Sessioned Variables?
When i have someone log in to my site, I compare their username to my database, then if there is a amtch, I compare Passwords. I then flip a sessioned flag and send them on their merry way. They can only see pages that allow his particular flag in.
If a person clicks "Log Out", i simply wipe out that sessioned flag by setting it to nothing, thus preventing them from accessing the pages.
I also have it set up to wipe out the flag after a certain amount of time.
|