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

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

WBOY
WBOYOriginal
2016-06-02 11:28:14797browse

php

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

Statement:
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