Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 15th, 2003, 11:37 PM
punkuz punkuz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 2 punkuz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy JSP Session Problem

I m using Oracle 9i HTTP Server. There is one HTML page ( login.html ) that accepts user name and password . The request is sent to a jsp page ( query.jsp) which validates it and if successful validation is done username and jdbc connection string is put as a session value. The user can then make certain queries on the database. If the query is successful, results are displayed. If query is invalid or no results then request is forwarded to this query.jsp page. ( using <jsp:forward page="query.jsp" />

This works well however, I am facing certain problems. Example :
ON the same machine if:
User opens IE window 1 and logs in and queries
User opens IE window 2 and logs in and queries
User opens Netscape window 1 and logs in and queries
User opens Netscape Window 2 and logs in and queries

Now if IE user1 query returns no results then he is redirected to query.jsp to enter naother query. But this time his username gets replaced by user name of IE window 2 but this does not affect netscape window

Now if NS user1 query returns no results then he is redirected to query.jsp to enter naother query. But this time his username gets replaced by user name of NS window 2 but this does not affect IE window.
Can anybody help me???

Last edited by punkuz : March 16th, 2003 at 07:29 AM.

Reply With Quote
  #2  
Old March 16th, 2003, 06:44 PM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
How are you opening the new windows? I believe if you open a window from and existing IE window using crtl-n or from a link or File->new->Window, this new window will share the session with the previous, opening window.

If this is what you are doing, try opening the new browsers by double clicking on the icon on the desktop( start menu, wheatever) and see if this changes things.

Reply With Quote
  #3  
Old March 16th, 2003, 08:58 PM
punkuz punkuz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 2 punkuz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I m opening a new window by double clicking. Then also this problem persists.

Reply With Quote
  #4  
Old March 16th, 2003, 09:40 PM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
Hmm, can you post the jsp in full here?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > JSP Session Problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT