Don’t do this. Seriously.
If I’m logged out because of a security action, just take me back to the login page. Seriously.
There’s no need for extra warnings, clicks, or telling me I’ve timed out. Seriously.
Also, make your login available on the Home Page of your website, preferably at the top right corner. Seriously.
Don’t make me hunt for it, or log in with extra steps. Seriously.
Seriously.