Hi All, I am using struts 2.0.14 to build an enterprise application. It uses spring, hibernate, tiles, Dojo 1.2.2.
Now I have a serious problem. My application has lots a pages and each page shows the logged in userid ( a string variable). This userid is put into the session map injected by the SessionAware interceptor. The injected userid is used in jsp page (#session.userid) to show the logged in user info and also is saved in database for each business transaction for audit control. Now the problem is: 1) A User opens a browser window( IE 7/Firfox) and logs in the application as User X and the application shows the logged in userid as X and DB transactions also get userid info as X. 2) The same user opens a bowser tab or new window from the opened window ( from where he logged in as X), and logs in the application as User Y. Now userid Y overrides the userid X in session map( as no new session is not opened, I guess) and I get userid as Y in both the browser tabs. My application breaks. 3) If the user opens a new browser instance, then a new session is created and both the windows have their own user id info( i.e. userid doesnt override) I tried the scope interceptor ( by starting a conversion), but the result is same( i.e. could not get new session in a window tab). I searched for a solution, could not get a solution. Please suggest how to get rid of this problem. Thanks Rajib -- View this message in context: http://www.nabble.com/Struts-2-session-problem-tp21513305p21513305.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org