HTML form submits and the hostname changes to IP address

Posted by Shamik on Stack Overflow See other posts from Stack Overflow or by Shamik
Published on 2010-04-06T20:49:46Z Indexed on 2010/04/06 20:53 UTC
Read the original article Hit count: 241

Filed under:
|
|

I am facing a peculiar problem. The problem is, my webapp is being installed behind a proxy. The request gets submitted to the proxy which forwards the request to the original host that is running the websphere web application. The problem I am facing is, when I access the webapp, its URL looks like the below

http://www.myproxy.com

Lets say I get a form on this URL, when I submit the form, it is getting submitted to another URL - http://10.1.2.87

Since the URL is changing, application server thinks it is a different session and throws the login page again. The login page comes thru a filter which checks whether user is already authenticated in the session or not. I do not have much knowledge on proxy settings .. where do you think is the problem?

© Stack Overflow or respective owner

Related posts about jee

Related posts about html