Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Netscape Same Session problem...

Posted on 2003-11-12
10
298 Views
Last Modified: 2012-05-04
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.
0
Comment
Question by:noijet
  • 7
  • 3
10 Comments
 
LVL 14

Expert Comment

by:kennethxu
ID: 9732662
>> 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
 

Author Comment

by:noijet
ID: 9732786
Thank you for your reply kennethxu, but I want the user to be able to cancel the previous session the user had opened.
0
 

Author Comment

by:noijet
ID: 9732823
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 
LVL 14

Accepted Solution

by:
kennethxu earned 88 total points
ID: 9733006
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
 

Author Comment

by:noijet
ID: 9733555
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
 
LVL 14

Expert Comment

by:kennethxu
ID: 9733774
That's right!
As always, my pleasure to help :)
0
 

Author Comment

by:noijet
ID: 9735503
Thank you kennethxu !

Thanks again,
noijet.
0
 

Author Comment

by:noijet
ID: 11999392
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
 

Author Comment

by:noijet
ID: 12143332
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
 

Author Comment

by:noijet
ID: 12435127
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

Featured Post

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most MSPs worth their salt are already offering cybersecurity to their customers. But cybersecurity as a service is wide encompassing and can mean many things.  So where are MSPs falling in this spectrum?
The advancement in technology has been a great source of betterment and empowerment for the human race, Nevertheless, this is not to say that technology doesn’t have any problems. We are bombarded with constant distractions, whether as an overload o…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question