About the site to get a cookie problem under another site

Source: Internet
Author: User
Existing A, a (domain name is not the same) two sites, a website login, will save a cookie, then B site want to know which user a station login, that is, want to get this cookie value.

Is there any way to do this with curl? Or not through curl, by other means to get


Reply to discussion (solution)

A website to do an interface, B directly read the interface can not ... Get the client to do it?

A website to do an interface, B directly read the interface can not ... To get the client to do it? Trouble, can you tell me a little bit more?

Siteb.js

$.get (' sitea_api.php?salt= authentication key &time= current timestamp ', function () {      //Perform login operation});


sitea_api.php
if (MyCheck ($salt)) {//Check if key is correct    echo $uid;//output current User ID}
  • 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.