Session has expiration time. Exception SessionTimeoutError is raised when accessed with expired session.
Session expiration time is specified with seconds in "timeout" attribute of CKApplication. Timeout is time progressed with seconds than "timeout" after last accessed time for the session. You make sessions postpone indefinitely by setting 0 for "timeout" attribute. Sessions that session IDs don't exist is also timeout.