微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Apache服务器和Payara服务器会话在每次通过域名请求网页后重新创建

如何解决Apache服务器和Payara服务器会话在每次通过域名请求网页后重新创建

我有一个 payara 实例。已经能够配置从我的 apache 网络服务器到我的 payara 的请求转发。但是,在每次使用我拥有的实际域 url 重新加载页面时,会话都会重新创建,因此丢失了存储在先前请求的会话中的任何属性。但是,当我通过 ipaddress 而不是域名访问我的应用程序时,不会发生同样的情况

i am using a centos8 vps. didnt find **mod_session** as part of the modules in the **/etc/httpd/modules** folders so i installed using

**yum install mod_sessions**

and after running successfully checked and they were Now in the modules folder. so i then edited the **/etc/httpd/conf.modules.d/01-session.conf** with the following lines

**LoadModule session_module modules/mod_session.so
LoadModule request_module modules/mod_request.so
LoadModule session_cookie_module modules/mod_session_cookie.so
LoadModule session_dbd_module modules/mod_session_dbd.so
LoadModule auth_form_module modules/mod_auth_form.so
LoadModule session_crypto_module modules/mod_session_crypto.so**

and then restarted the apache httpd server. 

However,still doesn't work. visiting the webpage via the domain name recreates a new session at every request. 

i added **stickysession=JSESSIONID** to the PROXYPASS in the VirtualHost Setting of the domain and still no change. session get recreated at each request

**Please helP**

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。