• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is this session problem?

 
yugandhar reddy
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
We have deployed our applcation on tomcat server built on servlets and jsp.

We have also set the domain name and are redirecting the domain name to Static Ip where our application.

Everything is working fine in Firefox.But in IE6 and IE7 we are facing issues related to sessions.

Example:
it works when we access directly
http://143.21.14.75:8080/myapp

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
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sana naz
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic