Handle 404 case in session