|
For the log-out script, you only need to clear sessions and cookies...that is if you use sessions or cookies to validate a user.
You can then add stuff like time-stamp for the time he logs out so that that will be the last time the user was logged in.
You cannot just copy paste different scripts into a system and expect them to work. Learn the fundamentals behind them and you can make your own systems independently and it will be easy for you to debug them.
|