wood burning stoves 2.0*
The moose likes JSP and the fly likes Session in a popup window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Session in a popup window" Watch "Session in a popup window" New topic
Author

Session in a popup window

Chit Ming Chong
Ranch Hand

Joined: Sep 09, 2004
Posts: 49
If I create a session in a main window inside which it will create a new popup window, will the popup window have the access to the same session variable.

The reason for such application is that I am building a survey application. The session will be created once a user has logged in. Then he will press a button to start the survey. As I wanted to disable the browser's back and forward button, I have to create a new popup window for the survey form.



I know this question should have been answered many times in the ranch.
So please point me to the appropiate posting as I wasn't able to find them
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
All windows created as children from a specific browser window will share the session with that browser window.

If a browser doesn't follow that, it's flawed (some versions of Netscape seem to be so bugged, but that's about it).


42
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

If a browser doesn't follow that, it's flawed (some versions of Netscape seem to be so bugged, but that's about it).


I have seen this problem with IE 5.5. on windows 98 OS.Has anyone come across this?


Groovy
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I've heard of people having that issue but haven't run across it myself.
MSIE has some other, pretty serious, security flaws. If you can convince your users to upgrade you would be doing them a favor.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Ben, IE has no worse security flaws than any other browser. Besides which, this is a forum about JSP development and not about anti-Microsoft religious ranting.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It wasn't a rant or a comparison of any other browser.
Note: I didn't tell the user to switch brands, but to upgrade.
Microsoft recommends upgrading to MSIE 6x.

If someone told me they were using an older version of any browser and was having trouble with it, I would recommend that they upgrade.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Ben Souther:
MSIE has some other, pretty serious, security flaws. If you can convince your users to upgrade you would be doing them a favor.


Looking back at this post...
What I meant to say was:
MSIE 5.x has some other, pretty serious, security flaws.

Without the version, I can see how this was mistaken for an anti-MS rant.

Not my intention. (I keep my religious beliefs to myself )
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
The Soft is Micro and Bill Gates is its prophet

I agree that anyone who can should upgrade to IE 6 (latest fixlevel). But sometimes corporate policy (which is often misguided) prohibits that.
For example: I once encountered a customer who had a policy which was set in stone to never use any software newer than the second to last patchlevel of the second to last version of any specific package.
So they for example upgraded to NT4 SP4 (from NT 3.51) when Microsoft released SP1 for Win2K. Their policy didn't allow them to do so earlier...
That company would at the moment be using IE 5.0 (second last service level of the second last version of IE).
Misguided, dangerous, but according to the people who made the policy it's secure as it prevents bugs in products and service packs from entering their network (don't ask me how they came to that conclusion).
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410


Showing your true colors?
 
Don't get me started about those stupid light bulbs.
 
subject: Session in a popup window