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?
 
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
0
 
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.
0
 
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.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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.

0
 
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.
0
 
kennethxuCommented:
That's right!
As always, my pleasure to help :)
0
 
noijetAuthor Commented:
Thank you kennethxu !

Thanks again,
noijet.
0
 
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
0
 
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
0
 
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.