Tôi có phiên Shiro (id = 11111) và phiên http (id = 22222).Shiro: Không thể vô hiệu hoá HttpSession
Khi tôi cố gắng vô hiệu hóa HttpSession, id sai được sử dụng.
Code:
public void logout() { SecurityUtils.getSubject().logout(); // exception is thrown in this line FacesContext.getCurrentInstance().getExternalContext().invalidateSession(); }
Ngoại lệ:
java.lang.IllegalStateException: org.apache.shiro.session.UnknownSessionException: There is no session with id [22222]
Làm thế nào tôi có thể làm mất hiệu lực HttpSession hay đúng hơn là thiết lập id có đúng không?
Theo dõi ngăn xếp hoàn chỉnh sẽ hữu ích –