How can I determine whether a cookie has expired or has not been created?

Source: Internet
Author: User
How can we determine whether a cookie has expired or has not been created? now we want to integrate it with a third-party system and share it with cookies! Cancel synchronization now! That is, our system determines the status of the cookie value of a third-party system to execute a certain statement! If the cookie is set to expire, statement 1 is executed. If no cookie is created, statement 2 is executed! I don't know how to do it. please advise, thank you ------ solution ------------------ 1. how to determine whether a cookie has expired or has not been created
It is now integrated with a third-party system and shared through cookies!
Cancel synchronization now!
That is, our system determines the status of the cookie value of a third-party system to execute a certain statement!
If the cookie is set to expire, statement 1 is executed. If no cookie is created, statement 2 is executed!
I don't know how to do it. please advise. thank you.

------ Solution --------------------
1. the premise is that the two systems to be integrated must be under the same domain name
2. there is no difference with normal cookie operations
------ Solution --------------------
Discussion
1. the premise is that the two systems to be integrated must be under the same domain name
2. there is no difference with normal cookie operations

------ Solution --------------------
Step 1: read cookies for all verifications before further verification

Step 2: log out synchronously. cancel the cookie in one place. if the cookie does not exist in other places, it is deemed that the cookie has not been logged in!
------ Solution --------------------
When the producer is created at the same time, when the producer is created at the same time, it can be done through the same interface.

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.