The JSESSIONID cookie will only be valid for a particular session and it will be invalid when the session times out.
However when you are using the remember me option, you can login with the remember me cookie even if the initial session has timed out.