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.