03-07-2016, 07:44 PM
Brian,
I did something similar in 3.3.
in login.php after auth and before the redirect you could put in two session vars:
$_SESSION['ll'] = $userdetails["last_sign_in_stamp"]; // whatever equivalent in 4.x
$_SESSION['lt'] = date("Y-m-d H:i");
Then you can compare those vars against themselves or other per-page datas.
This might not play well with remember-me :|
I did something similar in 3.3.
in login.php after auth and before the redirect you could put in two session vars:
$_SESSION['ll'] = $userdetails["last_sign_in_stamp"]; // whatever equivalent in 4.x
$_SESSION['lt'] = date("Y-m-d H:i");
Then you can compare those vars against themselves or other per-page datas.
This might not play well with remember-me :|