You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Julien ROTT <ju...@gmail.com> on 2008/06/05 08:36:38 UTC

[Struts 2] webapp on internet, clients behind a proxy --> session clash

Hello,

I have put my webapplication on a server on the internet. Some clients
access this application from behind a company proxy and there are session
problems : one client sees the data from another client... but when hitting
"F5" the browser gets back to its normal session.

I guess the server is a bit confused because the clients have the same IP
address (I tried jboss and jetty).

Did someone already have the same problem ? Or what can I do to avoid such
session collision ?

jr.

Re: [Struts 2] webapp on internet, clients behind a proxy --> session clash

Posted by Al Sutton <al...@alsutton.com>.
Not in your struts app.

I've seen this in a production situation and it's usually a bug in the 
proxy. If you can try setting up a NAT environment without the proxy and 
then with the proxy, if the bug only occurs when the proxy is in place 
then you know where the problem is.

Al.

P.S. The buggy proxy I encountered was Novell iChain, I don't know the 
version, but after the customer put in a rule that the site the struts 
app was on was not to be proxied everything worked and they were 
satisfied they should be talking to Novell about the problem.

Julien ROTT wrote:
> So there is no solution to avoid the sessions clash in this situation ?
>
>
> 2008/6/5 Dave Newton <ne...@yahoo.com>:
>
>   
>> --- On Thu, 6/5/08, Julien ROTT <ju...@gmail.com> wrote:
>>     
>>> I guess the server is a bit confused because the clients
>>> have the same IP address (I tried jboss and jetty).
>>>       
>> Session management isn't really handled by Struts, it's handled via the app
>> server and browser (by sending the session id cookie).
>>
>> AFAIK the requesting IP address doesn't (shouldn't?) have anything to do
>> with it, it's all about what the browser sends to identify the session.
>>
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [Struts 2] webapp on internet, clients behind a proxy --> session clash

Posted by Julien ROTT <ju...@gmail.com>.
So there is no solution to avoid the sessions clash in this situation ?


2008/6/5 Dave Newton <ne...@yahoo.com>:

> --- On Thu, 6/5/08, Julien ROTT <ju...@gmail.com> wrote:
> > I guess the server is a bit confused because the clients
> > have the same IP address (I tried jboss and jetty).
>
> Session management isn't really handled by Struts, it's handled via the app
> server and browser (by sending the session id cookie).
>
> AFAIK the requesting IP address doesn't (shouldn't?) have anything to do
> with it, it's all about what the browser sends to identify the session.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: [Struts 2] webapp on internet, clients behind a proxy --> session clash

Posted by Dave Newton <ne...@yahoo.com>.
--- On Thu, 6/5/08, Julien ROTT <ju...@gmail.com> wrote:
> I guess the server is a bit confused because the clients
> have the same IP address (I tried jboss and jetty).

Session management isn't really handled by Struts, it's handled via the app server and browser (by sending the session id cookie).

AFAIK the requesting IP address doesn't (shouldn't?) have anything to do with it, it's all about what the browser sends to identify the session.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org