php-登录与业务分离的两个系统之间如何保证Token有效

WBOY
Release: 2016-06-02 11:28:14
Original
798 people have browsed it

php

目前设计一个系统 有个一个独立登录系统,登录成功回返回token作为令牌换取用户信息,但是系统的逻辑部分不能实时判断出来token是否有效,因为token是登录系统发放的,不去访问登录系统不会知道token是否过期,如果想实时知道token状态在两个系统之间创建一个验证接口,确实可以验证token是否过期 ,但是这样做太影响效率了,每次都要去登录系统验证token

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!