I have to create a @managedBean to manage thelogin/logout user, what is the right scope of it? @SessionScoped or @RequestScoped
Thanks
I have to create a @managedBean to manage thelogin/logout user, what is the right scope of it? @SessionScoped or @RequestScoped
Thanks
Use @RequestScoped, so the bean will be quickly removed after login. It is created upon a HTTP request and destroyed when the HTTP response is finished.