Hi,

HttpSession session = (HttpSession) context.getExternalContext
().getSession(true);

where context is your FacesContext read the documentation for
getSession(Boolean value) method.


On Nov 12, 11:47 pm, Károly Holczhauser <holczhau...@gmail.com> wrote:
> Hi all !
>
>  My problem is the next: I have a login JSF page, witch call a ManagedBean
> if the button had pressed. The bean is going to check the DB , and if the
> user is okay, the it need to create a HTTP Session. How can i do it ? How
> can I create a HttpSession with a Java Bean class ?
>
>                            thx: Károly from Hungary

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to