I am creating website using JSF 2.0 where I have all in session bean for some work. All is working perfectly, however problem occur when I open same site in another tab or I right click and say Open in new tab.
Lets say I have list of users and on clicking the user name, I see the details of all that user. Now if I right click and say Open in new tab I see details of User A in Tab A. I do same for User B. I know as my bean is in session bean and I clicked last as User B, if I refresh tab A, I will see data of User B.
I would like to know, how could I start new session when I open the same site in new tab OR I right click and open as Open in new tab?
Note : As per BalusC answer, I should use View Scope, however there would be many changes in my programming. So for this website, I am thinking of using any other alternate way where I can start new session when I open same site in new tab.
If I open same site in another browser, I see new session. Is there any way where I can start new session in same browser?