Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session is lost in new browser window.

 
K West
Ranch Hand
Posts: 58
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Servlet filter to secure help documents in the site.
If the session is expired or user enters the document URL directly into browser, it redirects user to log in page.

Web.xml



Filter Servlet : DocumentAuthenticationFilter




This works great in all browsers. If session is expired user is redirected to log in page else document is opened in the new window of browser.

But in IE 8 the session is not found in the newly opened browser window and the filter redirects the user to log in page, as well as session in the parent page is also lost after that.

Has anyone come across this? Any suggestions?

Thank you.
 
Mike Zal
Ranch Hand
Posts: 144
Fedora Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Previous Discussion on the topic

What do you mean by newly opened window? Is that a new window that was opened by your website or do you mean when the user enters opens another window themselves?

You shouldn't need a filter to control access to your documents. You should be able to use Declarative Security.
 
K West
Ranch Hand
Posts: 58
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, its the new window that was opened by the website upon clicking the link of document.

You should be able to use Declarative Security.


I don't want it to be role based. Only requirement is that the user should be logged in to view the document.

Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic