You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe
I use spring gateway as a rou::ter for microservice system build by spring cloud, and spring session redis as shared session. I found that the session id frontend pass to gateway and gateway pass to backend service is different , so that the backend service can not get the right user session.
in redis ,sessionKey is spring:session:sessions:expires:45b4ebb1-2a29-4a75-bbca-eee75b9a54de.
but sessionKey is spring:session:sessions:expires:NDViNGViYjEtMmEyOS00YTc1LWJiY2EtZWVlNzViOWE1NGRl in gateway.
this cookie what'name is SESSION , encoded by base64 and not decoded in Netty.
Hope to help you。
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
Describe
I use spring gateway as a rou::ter for microservice system build by spring cloud, and spring session redis as shared session. I found that the session id frontend pass to gateway and gateway pass to backend service is different , so that the backend service can not get the right user session.
Gateway config
routes:
- id : user-service
uri: lb://user-service
predicates:
- Method=GET,POST
filters:
- SaveSession
- StripPrefix=1
- MapRequestHeader=cookie, cookie
- DedupeResponseHeader=Access-Control-Allow-Credentials Access-Control-Allow-Origin Set-Cookie
- RemoveResponseHeader=Set-Cookie
version
spring-cloud.version: Greenwich.SR6
spring-boot.version: 2.1.16.RELEASE
spring-cloud-alibaba.version: 2.1.2.RELEASE
spring-session-data-redis: 2.1.12.RELEASE
The text was updated successfully, but these errors were encountered: