How to tell if a cookie has expired or has not yet been created
Source: Internet
Author: User
How to tell if a cookie has expired or has not yet been created
Now you want to integrate with a third-party system and share it through cookies!
Now do synchronous logoff!
That is, our system determines the state of the third-party system cookie value to execute a statement!
If a cookie is found to expire, execute statement 1 and EXECUTE statement 2 if the cookie is found not yet created!
Do not know how to do, please advise, thank you
------Solution--------------------
1. The premise is that two systems that need to be integrated must be under the same domain name
2. No difference from normal cookie operation
------Solution--------------------
Explore
1. The premise is that two systems that need to be integrated must be under the same domain name
2. No difference from normal cookie operation
------Solution--------------------
The first step: all verification must read the cookie, and then further verification
The second step: synchronous logout, in one place to log off the cookie, other places to verify the cookie does not exist, it is considered not logged in!
------Solution--------------------
Created at the same time, at the same time to be registered, through the same interface to do
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.