Since company Pipedrive accounts contain your valuable information, Pipedrive will automatically log you out after a certain period of inactivity.
To remain logged in for a longer period of time, be sure to check the Remember me option when logging in.
When the Remember me option is checked — or when logging in using Google credentials or with SSO — Pipedrive login sessions will last for thirty days. When not selected, login sessions will last for twelve hours, or until the internet browser is closed.
You need not worry about being logged out in the middle of your work, though — Pipedrive will keep you logged and extend your session if Pipedrive detects that you're still hard at work.