I’m stuck at this question. I’ve used httpsessions before. But this time, I got this thing to choose between the two. A session-scoped managed bean or an httpsession.
What do you suggest ? Please mention pros and cons of each.
Thanks for helping 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are two concepts here:
Case For HTTPSession: lets say you have a variable called
var_oneand you want to accessvar_onewithin a session across multiple managed beans (irrespective of whether they are session scoped or not), then you need to use HTTPSession to store this variable.Case Session Scoped Managed bean: Incase you need to manipulate this
var_onevariable only within one specific session scoped managed bean, then you can directly keep it in this bean and use it through out the session.