Solved

Netscape Same Session problem...

Posted on 2003-11-12
10
295 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
 
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now