Lock users if website is idle for certain period ウェブサイトが一定期間アイドル状態の場合にユーザーをロックするAn updated version.
Lock users if website is idle for certain period ウェブサイトが一定期間アイドル状態の場合にユーザーをロックする An updated version.
After Adding the Code:
Where to Find the New Options:
Navigate to your WordPress Admin Panel.
Go to Settings → General.
Scroll down to find the new Inactivity Timeout (seconds) field.
This is where you can set the timeout duration for user inactivity (default is 300 seconds, or 5 minutes).
How to Test the Functionality:
Log in as any user.
If you're idle for the set timeout duration, you'll:
First receive a warning (30 seconds before logout).
Then, you'll be automatically logged out when the timeout expires.
If you're logged out due to inactivity, you'll see a message on the login page: "You were logged out due to inactivity. Please log in again."
Dynamic Behavior:
Any interaction with the page (mouse movement, keypress) will reset the inactivity timer.
Comments