Awesome... all I need to know now is how to log the user OUT externally. Ideas?
Is it just clear the two created cookies and then clear the session in the database? (how do you do that with the sessions?)
Edit: removing the userid, password and sessionhash cookies worked... ie:
setcookie('bbpassword', "", time() - 14400);
setcookie('bbuserid', "", time() - 14400);
setcookie('bbsessionhash', "", time() - 14400);
Although yeah it still doesn't remove the session data from the database
|