previously we were using response.sendRedirect() now that is changed to request.getRequestDispatcher().forward() and the application is working fine but when i hit refresh it takes me to the index(login) page. I see in my browser address bar that mydomain.com is only visible even when I visit different pages(it doesn't show mydomain.com/support.jsp or mydomain.com/careers.jsp)
the company who redirect to our static IP use frames as show below <html> <head> </head> <frameset border="0" rows="100%,*"> <frame frameborder="0" src="http://143.21.14.75:8080/myapp"> </frame> <frame noresize="" frameborder="0"> </frame> </frameset> </html>
i hit refresh at resource.jsp and i see in the status bar http://143.21.14.75:8080/myapp/? and finally the index(login.jsp) page is viewed.
I am unable to take my application live because of this issue.
Please help me to solve. Thankyou for your time and consideration
I have seen this before. IE does not appear to share cookies across domains when using frames or iframes. I am not sure if this is a setting that can be changed or not, but for us it was simple enough to turn off using cookies for session management and instead we relied completely on URL re-writing.
Steve
sana naz
Greenhorn
Joined: Nov 28, 2008
Posts: 1
posted
0
Hii,
Thats not the domain or session problem. For resolve this problem you have to set the security options like override the cookie.
Follow this setting. in IE7 -> tools -> internet options -> privacy -> advanced -> check the 'Override automatic cookie handling' and make sure 'Accept' option is selected for 'Third-party Cookies'
Srikanth Nutigattu
Ranch Hand
Joined: Oct 30, 2007
Posts: 114
posted
0
@sana
I don't think the solution which you have mentioned is feasible, because he can't force/request the users of the page to change the settings in their browsers to correctly use the site.
@yugandhar
i hit refresh at resource.jsp and i see in the status bar http://143.21.14.75:8080/myapp/? and finally the index(login.jsp) page is viewed.
As you have mentioned, your entire site navigation is carried using frames, the URL will only reflect the parent frame, and any "Refresh" action will lead to resubmitting of parent frame URL which results in loding the "default" state.
If you can't avoid the external frames which your hosting provider is forcing. Then you can try to specify a javascript if the page has been loaded inside a frame and force the browser to reload it outside the frame.
Feel free to correct me if I am guiding in wrong direction.