How to check for session expiration time set on server side and drive users to login page after the session expires

On my server session time has been set to 60 minutes, After every 60 mins, session will expire. I need to know on the app side (client side) how can I retrieve the session time value and logs the user out after the session expires?