Finished up session timeout functionality