Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12488

Reply To: Idle Session Logout – change logout redirect or change ISL message

$
0
0

To change the ISL redirect URL you would need to manually edit the code in this BPS plugin file: /bulletproof-security/includes/idle-session-logout.php at Code Lines: 77 and 109 (the code is duplicated in 2 places).  We will add additional options in ISL in BPS Pro 11.9/BPS .53.8 so that these things can be changed in ISL option settings without having to manually edit any code.

function bpsSessionExpired() {
window.location.assign("<?php echo plugins_url('/bulletproof-security/isl-logout.php'); ?>");
}

To redirect to the WP Login page instead of the ISL Logout Template file:

function bpsSessionExpired() {
window.location.assign("<?php echo site_url( '/wp-login.php' ); ?>");
}

If you want to change the ISL message that is displayed you would need to manually edit the code in the BPS ISL Logout Template file: /bulletproof-security/isl-logout.php at Code Line: 77.  Change the message text to whatever you prefer.

echo '<div id="bpsMessageTextBox">';
echo '<p>' . $bps_hostname . ' Login Session Expired</p>';
echo '<p>Your Login Session has expired due to inactivity.</p>';
echo '<p>Idle Session Logout (ISL) Time: ' . $BPS_ISL_options['bps_isl_timeout'] . ' minutes.</p>';
echo '<p><a href="' . filter_var( $url, FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED ) . '" style="text-decoration:underline;">Login</a> again.</p>';
echo '</div>';

Viewing all articles
Browse latest Browse all 12488

Trending Articles