• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Session is lost in new browser window.

 
Ranch Hand
Posts: 58
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 144
Oracle Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic