Netscape Same Session problem...

Hi, I am running into trouble with getting the same session on Netscape browsers but not on Internet Explorer browsers.  This is the way my application normally works:  User opens a Netscape browser and logs in, a session is created and the session id is sent back to the browser in a cookie.  If user opens another netscape browser and tries to log in with the same name, the previous session will be invalidated while a new session is created for the current browser.  However on Netscape, the previous session is still valid.  When I look into my debug file, the session id's are the same for the Netscape browsers. Do you know why this is happening or if there is a possible fix to this ?  Any comments are well appreciated.

Code to invalidate user:
 if(userExists(user)) { //Check if user is already logged on...
    HttpSession oldSession = (HttpSession) removeUser(user);  //Get user session from session hashtable
    if(!sessionUtil.isInvalidated(oldSession)) {  //Check session validation
      oldSession.invalidate();  //Invalidate session
    }
 }

Note that on Internet Explorer my application works normally.

Thanks so much,
noijet.
noijetAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kennethxuCommented:
>> Note that on Internet Explorer my application works normally.
Not exactly, if you try to open a new IE windows from existing IE windows using menu File->New->Windows. you'll experience same thing as you did in NS.

The fact is window is not an instance, cookie will be shared across windows as long as the belong to save browser instance.

Why cannot you use back the old session, if it is the same as previous login? or you might don't want the user to login again by bring them to the old session directly.
noijetAuthor Commented:
Thank you for your reply kennethxu, but I want the user to be able to cancel the previous session the user had opened.
noijetAuthor Commented:
Hi, is there a way to simulate the IE behavior on Netscape ?

 I would like to add that this Netscape problem only happens if I am opening browsers on the same computer, if I log in with a Netscape browser on my computer and then go to another remote computer and log in with a Netscape,  browser, everything works fine.  

Thank you,
noijet.

CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

kennethxuCommented:
that's what I mean by browser instance. on different pcs, the instance is of cause different from each other. browser instance is a process on OS. with IE, you can open multiple instance, or you can open multiple windows within same instance. in NS, you can only have one process running. I believe that NS will detect if an existing instance is running on current OS when you start and it will just creat a new thread if one already exists.

So the answer to your question is NO. and I don't see the reason of cancalling the previsou session since user is still working on the save PC.

HTH

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
noijetAuthor Commented:
Hi kennethxu:

Thank you for your great answer.  So just to make sure I understand this correctly:  IE allows multiple browser instances, that is why cookie session is not being shared.  Netscape only allows one browser instance therefore cookie session is being shared.

Thank you,
noijet.
kennethxuCommented:
That's right!
As always, my pleasure to help :)
noijetAuthor Commented:
Thank you kennethxu !

Thanks again,
noijet.
noijetAuthor Commented:
Hi everyone !  If possible, can you check my question "Keeping values after refreshing..." at

http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_21121857.html

Thank you so much !
noijet
noijetAuthor Commented:
Hi everyone, I currently have a question open regarding using Tomcat and ServletExec Application servers, if anyone has some comments please check out question:  "Working with Tomcat and ServletExec on IIS..."     http://experts-exchange.com/Web/Web_Servers/IIS/Q_21143102.html

Thank you !
noijet
noijetAuthor Commented:
Hi everybody !  If possible, can you take a look this question regrading a mysterious scrollbar appearing in Netscape 7.2 but not in Netscape 7.1 or IE?  

At link: http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_21186370.html

Thank you !
noijet
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.