How to create, access and destroy session in JSF managed bean?
问题 Currently, I am creating a web application for an online shopping cart and I need to maintain session on each jsf page.. My questions are : How can I create and destroy session in managed bean How can I access value stored in session variable? Like this? FacesContext.getCurrentInstance().getExternalContext().getSessionMap.put("key",object); How can I destroy a session in jsf I also need to destroy the session using session.invalidate() but i am failed !! 回答1: How can I create and destroy