当用户单击按钮时,有没有办法为用户重置(清除) session ?
最佳答案
关于什么
session.invalidate();
invalidate method of session object is used to discard the session and releases any objects stored as attributes. This method helps to reduce memory overhead and achieves improvement in performance. It is always a good practice to explicitly remove or invalidate sessions using session.invalidate() method.
或者
session.removeAttribute(String)
The removeAttribute method of session object is used to remove the attribute and value from the session.
关于jsp - JSF 按钮重置 session ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1503550/