09-11-2018, 03:08 PM
Sorry I misspoke, I didnt really mean removed from the table... I meant marked as completed/ended. There isn't anything marking them complete.
I understand about editing core files... but had no choice because the logout page as is doesn't get the settings which is required to know if sessions being managed. Had a couple other instances so far where had no choice, keeping a log at the moment of such changes.
Think it would be good for the logout page to include header.php and navigation.php even too in case the user doesn't wish to redirect at all.
I am definitely interested in the other fix.
I understand about editing core files... but had no choice because the logout page as is doesn't get the settings which is required to know if sessions being managed. Had a couple other instances so far where had no choice, keeping a log at the moment of such changes.
Think it would be good for the logout page to include header.php and navigation.php even too in case the user doesn't wish to redirect at all.
I am definitely interested in the other fix.
PHP Code:
<?php
require_once '../users/init.php';
require_once $abs_us_root.$us_url_root.'users/includes/header.php';
if(file_exists($abs_us_root.$us_url_root.'usersc/scripts/just_before_logout.php')){
require_once $abs_us_root.$us_url_root.'usersc/scripts/just_before_logout.php';
}
if($settings->session_manager == 1 && isset($_SESSION['kUserSessionID'])) {
$sessions = ['kUserSessionID' => $_SESSION['kUserSessionID']];
killSessions($sessions,$admin=false);
}
$user->logout();
if(file_exists($abs_us_root.$us_url_root.'usersc/scripts/just_after_logout.php')){
require_once $abs_us_root.$us_url_root.'usersc/scripts/just_after_logout.php';
}else{
Redirect::to($us_url_root.'index.php');
}
?>