Implemented a redirect for when the user's session times out.