Try using something built around the token method that is normally used to prevent double-submissions.

The opening of the second browser window or tab would presumably send a new request to the server which would reset the token or would itself be invalid when checking the token. This would invalidate further requests from one of the browser instances.

You may want to implement this as an interceptor if it's an application-wide requirement.

http://www.planetstruts.org/struts2-showcase/token/index.jsp

-Stewart

On Nov 30, 2008, at 9:33 AM, [EMAIL PROTECTED] wrote:

What?  Are there solutions that are not web-based?  :)



On Sun, Nov 30, 2008 at 6:11 AM, Paweł Wielgus <[EMAIL PROTECTED]> wrote:

Hi Dani,
the only solution i can imagine in this case is to invalidate session
from first browser when the same user logs in with the second browser
- it would require You to write such bussiness logic to make it work.
But then again You cannot (or it will be very hard to do)
differentiate if a request comes from first or second tab in ff.
So if it's a real problem/requirement You should probably use
something other than web based solution.

Best greetings,
Pawel Wielgus.

2008/11/30, Dani <[EMAIL PROTECTED]>:
Hi,

In my web application I have to manage sessions. An user can not login
from multiple browsers (just one session available per user). I have
read that if browser window is cloned (such as a new tab in firefox or IE) the session is also cloned to this new tab so a user could have two instances of the application, and that´s what i am trying to avoid.

I have been playing around with sessions ID but no luck...

Any suggestions to achieve this?

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to