为什么将JSP页面会话设置为"false"?指示? [英] Why set a JSP page session = "false" directive?
本文介绍了为什么将JSP页面会话设置为"false"?指示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道您何时要在JSP中设置以下页面指令:
I was wondering when you would want to set the following page directive in a JSP:
<%@ page session="false" %>
我知道它阻止了会话对象的创建,但是您什么时候需要这样做?当JSP不需要访问隐式会话时,它是否被视为最佳实践?
I know that it prevents the creation of the session object, but when would you need to do that? Is it considered a best practice when a JSP does not need to access the implicit session?
查看全文