Auto logout non active users with custom code

Tips submitted by PHPMaker users
Post Reply
vintoICT
User
Posts: 437

Auto logout non active users with custom code

Post by vintoICT »

Your user table must have activate colum INT 0 for non active 1 for active

put this code after the last closing </html> tag in layout.php
<?php
//custom check active

if (IsLoggedIn()) {


$activestatus = CurrentUserInfo("activate");
if($activestatus==0){header("Location: logout");}

}

?>


Post Reply