Could you a bit more specific?
What "seesion" do you mean? EJB StatelessSessionBeans? Web-Sessions?
I write an example, it's simple application to manage books.
I have a login form to login.
I would like create a session when user login and delete a session when user logout. That my concept.
Thanks and regards,
anyone can help me?
If you are using CDI sessionscoped beans, an instance will be created when first referenced and the lifecycle will end when the session is terminated. There are several quickstarts (JSF and CDI) that can probably be used as a starting point.
Please find some shopping-cart examples written in JSF.
You can search it with www.google.com.