spring-cloud / spring-cloud-gateway

An API Gateway built on Spring Framework and Spring Boot providing routing and more.
http://cloud.spring.io
Apache License 2.0
4.52k stars 3.32k forks source link

gateway's websession id is different with backend service's #853

Closed yingziisme closed 5 years ago

yingziisme commented 5 years ago

In my spring session applications ,I use springcloud gateway 2.0.2 as my gateway server,but do not use webflux on my backend service ,is springboot application. Now I want to get session on my backend application , after gateway server set attribute in spring session. I found the websession's id is no equals httpsession id in my spring session redis server.

spencergibb commented 5 years ago

Have you tried using the integrated save session filter? https://cloud.spring.io/spring-cloud-static/Finchley.SR2/single/spring-cloud.html#_savesession_gatewayfilter_factory

spring-projects-issues commented 5 years ago

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.

spring-projects-issues commented 5 years ago

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.