The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue removing sessions
#4
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.



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 == && 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');
}
?>
  Reply


Messages In This Thread
Issue removing sessions - by clansing - 09-11-2018, 04:01 AM
RE: Issue removing sessions - by mudmin - 09-11-2018, 09:34 AM
RE: Issue removing sessions - by Brandin - 09-11-2018, 11:43 AM
RE: Issue removing sessions - by clansing - 09-11-2018, 03:08 PM
RE: Issue removing sessions - by Brandin - 09-11-2018, 03:19 PM
RE: Issue removing sessions - by clansing - 09-11-2018, 03:33 PM
RE: Issue removing sessions - by Brandin - 09-11-2018, 03:59 PM
RE: Issue removing sessions - by clansing - 09-11-2018, 05:03 PM
RE: Issue removing sessions - by Brandin - 09-11-2018, 05:06 PM
RE: Issue removing sessions - by clansing - 09-11-2018, 05:31 PM
RE: Issue removing sessions - by Brandin - 09-11-2018, 08:13 PM
RE: Issue removing sessions - by clansing - 09-11-2018, 11:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)