aspose file tools
The moose likes Servlets and the fly likes is this session problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "is this session problem?" Watch "is this session problem?" New topic
Author

is this session problem?

yugandhar reddy
Greenhorn

Joined: Oct 31, 2008
Posts: 13
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

Joined: Jan 28, 2003
Posts: 3041
    
    4

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
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
@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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: is this session problem?
 
Similar Threads
getting information (xml attribute) in frame with HTML code from other frame
IE refresh button
html frames issue
xsl: html: getting attribute from other frame with refresh: Update info
domain forwarding