The following solutions will work:

1- On each request, you serialize your session object into an hidden field 
instead of ur session, but depending on size and number of your session 
objects, this can be very expensive as it needs to be submitted with every form 
and link to be deserialized if needed.
I currently use it in one of my projects and it works perfect.

2- If your session object is a type of object that can be calcualted/retrieved 
on each request (like user authorization,roles,etc), you can have an 
interceptor to inject it to your every action on each request and you keep ur 
app abolutely session free. I have had the session mix-up issues using 
firefox/explorer tabs and this solution has also worked for me.

hope it helps.



--- On Sun, 11/30/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Subject: Re: Manage Sessions in Struts
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Received: Sunday, November 30, 2008, 3:33 PM
> 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]
> >
> >


      __________________________________________________________________
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! 
Canada Messenger at http://ca.beta.messenger.yahoo.com/


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

Reply via email to