[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

JSP issue in JavaBean or Netwok settings?

Posted on 2006-03-28
8
Medium Priority
?
183 Views
Last Modified: 2010-04-01
Hi,

I have a JSP application running on Tomcat server 4.1.31.
We have issue with the application as stated below:
First user logged in as user “A”. After he logged out, user “B” logged in, however system will show that the user is logged in as the previous user “A”.

It works perfectly in some network; however it doesn’t work as it should be in other network. It has this problem only in certain network or ISP configuration.
We noticed those computers in the network that has problem with “tracert” command has issue in our JSP application.

Please see the following link for detailed explanation, screen shot of the "tracert" and the sample JSP codes
http://s18.yousendit.com/d.aspx?id=1JKZQ21Y0B6N40TFYOOA46Q1UF

Please advise, Thanks.
0
Comment
Question by:rospcc
6 Comments
 
LVL 11

Expert Comment

by:fargo
ID: 16311265
Hi,

in a quick check, when the user is logging off, does it give some errors?

try {
      ev.addRecord("Logout", "Logout", "Logout", UserInfo[2], UserInfo[11], UserInfo[10]);
}catch(SQLException SE) {}

catch the exception here and see what is happening up.
may be it couldn't logoff the first user. Just a guess.

fargo
0
 

Author Comment

by:rospcc
ID: 16311379
The log off didn't give any issue. It works perfectly in most of the networks.
0
 

Author Comment

by:rospcc
ID: 16390129
I've found the solution by forcing the network to clear the cache with the codes below:
<%
        // Set to expire far in the past.
        response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");
        // Set standard HTTP/1.1 no-cache headers.
        response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");
        // Set IE extended HTTP/1.1 no-cache headers (use addHeader).
        response.addHeader("Cache-Control", "post-check=0, pre-check=0");
        // Set standard HTTP/1.0 no-cache header.
        response.setHeader("Pragma", "no-cache");
%>

Thanks
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:rospcc
ID: 16390134
How do I close this question?
0
 
LVL 20

Expert Comment

by:Venabili
ID: 16390543
0
 

Accepted Solution

by:
GranMod earned 0 total points
ID: 16429486
Closed, 250 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

If anyone asked you to network diagram of the internet, it was drawn in the form of a fluffy cloud which further became known as cloud computing. Popularly cloud computing is defined as workloads that run over the internet in a commercial provider’s…
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

872 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