Bom dia, amigos.
Se puderem me ajudar, agradeço muito. Tenho esse código abaixo para colocar senha em uma determinada página. Ele funciona redondinho mas uma vez que vc faça o login e acesse a página novamente ele não pede mais login. Quero que sempre, em todo novo acesso, ele force o login novamente. O que eu tenho que mudar no código?
Muito obrigada!
$LOGIN_INFORMATION = array( 'zubrag' => 'root', 'admin' => 'adminpass' );
// request login? true - show login and password boxes, false - password box only define('USE_USERNAME', true);
// User will be redirected to this page after logout define('LOGOUT_URL', 'http://www.example.com/');
// time out after NN minutes of inactivity. Set to 0 to not timeout define('TIMEOUT_MINUTES', 0);
// This parameter is only useful when TIMEOUT_MINUTES is not zero // true - timeout time from last activity, false - timeout time from login define('TIMEOUT_CHECK_ACTIVITY', true);
##################################################################
SETTINGS END
##################################################################
/////////////////////////////////////////////////////// // do not change code below ///////////////////////////////////////////////////////
// show usage example if(isset($GET['help'])) { die('Include following code into every page you would like to protect, at the very beginning (first line):<?php include("' . strreplace('\','\\',FILE) . '"); ?>'); }
// timeout in seconds $timeout = (TIMEOUT_MINUTES == 0 ? 0 : time() + TIMEOUT_MINUTES * 60);
// logout? if(isset($GET['logout'])) { setcookie("verify", '', $timeout, '/'); // clear password; header('Location: ' . LOGOUTURL); exit(); }
if(!function_exists('showLoginPasswordProtect')) {
// show login form function showLoginPasswordProtect($error_msg) { ?>