Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session handaling in servlet

 
pravin karne
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i want handle session(at login time) in my web application.i m using JSF as front end.
There are two case ,for disscus

1. If i login in my appication with different IE windows its working fine.
2. But when i use new window( suppose there is on Hyperlink ,i click on it and open it in new window same way open another window...Now i have two IE window)
i use these two window for two user to login into my application.
a.i loging with one user using one above window( i got his home page...successful login)
b. then i logged with anothere user with second window.( i got his home page..)but session between thse two user get shared.when i use first user page i m able to see second user's session data.

In short, if i use two child IE windows for loging into web application with two diffirent user seesion between two user get shared.


Plaese help me if any body knows these thing

Thanks in advance
 
Anil Sadineni
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pravin,

Here session get getting shared because you opened a new window by clicking link on existing window. Now HTTP head of new request maintains same session id(cookie) as old window used to send request to server. Eventhough you have two windows, since your browser is sending same session id to server, server side there will be only one session maintained.

Hope it helps !!!

Anil.
 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Something tells me if you use URL rewriting, then it will work.

How two users share the same PC and screen? Do you use VNC or something?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic