force user to re-login after 4 hours – how?
The easiest way is to change the authentication cookie expiry time. add_filter(‘auth_cookie_expiration’, ‘wase_85171_expiry’,10,3); function wase_85171_expiry($expiry, $user_id, $remember) { return 14400; // or calculate the time remaining till the time you want it to expire } People can extend the cookie expiry in the browser, but I don’t believe anyone will bother