[英]How to set session timeout at embedd jetty xml configuration?
I have that line of codes at my jetty-servlet-context.xml 我在jetty-servlet-context.xml中有这行代码
<bean id="jerseyServletCtx" class="org.eclipse.jetty.servlet.ServletContextHandler">
<property name="displayName" value="Jersey Servlet Context"/>
<property name="contextPath" value="/rest"/>
<property name="sessionHandler">
<bean class="org.eclipse.jetty.server.session.SessionHandler"/>
</property>
...
How can I add an ability to set maxInactiveInterval into my xml file? 如何添加将maxInactiveInterval设置为我的xml文件的功能? Maybe I am missing something it may be anywhere else instead of that jerseyServletCtx, but it should be at jetty-servlet-context.xml.
也许我错过了它可能在其他任何地方而不是jerseyServletCtx,但它应该在jetty-servlet-context.xml。 Any ideas are welcome.
欢迎任何想法。
PS: I don't have a web.xml PS:我没有web.xml
您的问题将近一年,但如果它可能对您或其他人有所帮助:您可能需要查看webdefault.xml
并检查会话配置部分中的session-timeout
元素。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.