Login time-out page jump and Ajax request problems!

Source: Internet
Author: User

  

Nothing to do today. The backend two coder explore how to tell if a request is an AJAX request (by asking the header to determine if it is the XMLHttpRequest and IE under the cloth) to understand the details are to resolve the login timeout Ajax request to the landing page of the HTML.

And then I gave a design way side most of me is a front end) as follows:

 

1, the page jumps the controller and the form submits the control inherits the base class A and then a has to do the login timeout the processing method of the jump.

2, all the interfaces are what they say the controller of the AJAX request inherits the function of the base class B , which contains the return status of the login timeout. The front end can do state judgment and jump when Ajax requests.

The basic can think of is that this looks plausible, still have to start from the small things!

Login time-out page jump and Ajax request problems!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.