• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

lost session object in new window

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
I am having a problem with losing my original session when I popup a window with JavaScript. I thought it was suppose to keep the same session when this is done. However, I have read about Explorer bugs which create new sessions for new windows as well. My problem could also be because of my program execution flow:
user is logged into App#1. user clicks on submit to get a report -> goes to App#1, queries and forwards to a jsp with JavaScript -> this script pops up a window with a url to App#2 (different machine for reporting tool) -> this second window displays a pdf with hyperlinks -> these hyperlinks go back to App#1 to generate a new report. The problem is, when it tries to go back to App#1 it has a different / new session object.
Additionally, I am using 2 different versions of Websphere and they both behave differently. Version 3.5.4 keeps the same session, while version 3.5.5 creates a new session. I realize that it may be a Websphere problem but I'm just trying to narrow this down. thanks for your help.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just a quick thought:
You can get around this with frames I believe, just have the top frame keep all the sesion variables alive. The frame can be zero height and would not be noticed.
 
John Sakell
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't quite understand how that would work. When I pop up a new window (which I have to do), I seem to lose the session right there. How would I keep it using a frame?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic