A problem encountered at work (cookie-related)

Source: Internet
Author: User

Today on-Line a api,6 machine-made cluster. The first step in the API is to read the cookie to determine if the user is logged in.

For example, the on-line servers were

10.255.242.1

10.255.242.2

10.255.242.3

10.255.242.4

10.255.242.5

10.255.242.6,

The API address is mlservice.taobao.com (as an example), the first step of the API is to take a cookie, determine whether the user is logged in, the call is mlservice.taobao.com?test_id=12

After the completion of the online, I always have to verify their own first. So I went straight to the tune:

10.255.242.1?TEST_ID=12, the result indicates that I am not logged in.

Step by step, find that the cookie is empty. Why, check for a long while, suddenly found that with IP access in Taobao This domain is no cookie

Hosts must be bound to access it.

10.255.242.1 mlservice.taobao.com

The only way to access the API is to get a cookie under the Taobao domain.

With IP access, the cookie is not

A problem encountered at work (cookie-related)

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.