Liferay前后台Session不是同一个处理方法

方式一

前台放Session修改如下方法

HttpServletRequest httpRequest = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(renderRequest)); 


方式二

指定路径修改web.xml

	<session-config>
		<cookie-config>
			<path>/</path>
		</cookie-config>
	</session-config>


(1)
数据分享
  • 博客:318
  • 工具:20
  • 财经:83
  • 凡猫:3
  • 自媒体:4
  • 摄影:1
与人方便,与己方便
广告位