Hello, im doing this system, where there are a login page and a profile, when you login you can enter the profile with your info based on your username offcourse, but in my project i can only login with one user, example, i use chrome to login succesfully, then if i open the project in another browser (chrome, explorer, etc) it redirects me to the profile page that i login before in the first browser. Im using SessionScoped, to validate a static variable (which is i think the problem is, but when i use it as non static, the variable wont save), something like, if the username and password exist in the BD you can log in, then the static variable authLogin is true and you can access to the profile.
I tried fix this using anotations, Stateless, Stateful, changing the Scope... but nothing works
Example of code
Then the check if the user if logged
I repeat, it works with one user, but i need it for "n" users
I read that maybe i need multi tenant, o managing threads, and i find a lot of theory, but no sample codes that use J2EE