You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dariusz Wojtas <dw...@myrealbox.com> on 2002/03/04 22:15:42 UTC

How to avoid session conflict in 2 windows?

I have some struts app that works perfectly, but
I may have some problems if the user opens another
window in the same session (Ctrl + N).
The browser introduces itself with the same cookie
in both windows.

Is there any way to avoid this?
I was thinking about using filters and 2 cookies.
1st cookie would be used to keep the session, and the
2nd would be just for window id.
After every request server would change the value of the second
cookie (for example System.currentMillis()) and save it's value
in the session.
Next time I would always check session + the millis.
But I am not sure if this would work.

Is there anything in struts that would help?

	Dariusz Wojtas


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>