Response of that Ajax call gets you the response with status code 302. Most important, session expire has nothing to do with login page and this is the most common wrong assumption most of the developers have.Authentication Cookie is different and Session Cookie is different and both are independent.