Plesk for Windows
kb: how-to
Plesk for Linux
Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to change session idle timeout (login timeout) in Plesk?
Answer
Note: Session idle time can be changed only by a Plesk Administrator.
In Plesk interface
- Log in to Plesk.
- Go to Tools & Settings and click Session Idle Time (under Security).
- On the Session Settings page, adjust session idle time.
-
Click OK to apply the changes.
In a command-line interface
- Connect to your Plesk server via SSH (Linux) / RDP (Windows Server).
-
Run the command below to update session idle time (on Windows Server, start a command prompt as an Administrator):
Note: Replace 120 with your own value (in minutes).
# plesk db "update misc set val=120 where param='login_timeout'"
-
Check the current value:
# plesk db "select * from misc where param='login_timeout'"
+---------------+-----+
| param | val |
+---------------+-----+
| login_timeout | 120 |
+---------------+-----+
Comments
This documentation lacks the workaround to enable “Allow IP address changes during a single session” via CLI. For this, I was able to find a proper command:
plesk bin settings --set disable_check_session_ip=true
Also, a proper Plesk command would be better to change this properly via CLI rather than a raw db edit.
I found it myself by deduction from the previous command:
plesk bin settings --set login_timeout=120
Please sign in to leave a comment.