Jump to the post that solved this thread.
Not Solved session_destroy() on logout
Not Solved
I added custom code (global.php) on our forum, once the user logged-in it creates session. The code below:
// Create session for this user
require_once MYBB_ROOT.'inc/class_session.php';

$session = new session;
$mybb->session = &$session;

//code added below//

ini_set('session.save_path',realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/site_sessions'));


Now, I dont know where to put the session_destroy() code when the user logged-out. It seems that mybb doesn't use session_start and logout button is just link with logout key (can't find the build-in function of it).
Not Solved
Have you checked all the hooks present in MyBB ?
Jump to the post that solved this thread.

Forum Jump:

Users browsing this thread: 1 Guest(s)