当前位置:网站首页>Application session coverage solutions with different ports on the same server

Application session coverage solutions with different ports on the same server

2022-06-25 01:31:00 Lingyue 11

Problem scenario : There are two applications that need to run on the same server .A In the application, we should iframe nesting B Pages in the app , But every time you log in B After the system A Systematic session Will be covered and cause A System disconnection
reason : Two applications are in the same IP The next run will overwrite each other session
Solution : modify cookie Medium jsessionid name ,springboot Modify the configuration file server.servlet.session.cookie.name=JSESSIONID1( The names of the two systems are different )
tomcat Modify the scheme by yourself .. There are many on the Internet
 Insert picture description here

————————————————
Copyright notice : This paper is about CSDN Blogger 「 The back end of the front end is forced 」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement .
Link to the original text :https://blog.csdn.net/qq_37740982/article/details/97373855

原网站

版权声明
本文为[Lingyue 11]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206242126344165.html