Redirects to index page if session has expired.