| Author |
session tracking
|
shriram iyer
Ranch Hand
Joined: Dec 10, 2003
Posts: 43
|
posted

0
|
i am using apache-tomcat-5.5.34,to run following JSP Code
First i open an internet explorer and type in address bar
http://localhost:8082/jsp-examples/SessionTrack/index.jsp
new session created,when i refresh the page,the varible
accessCount increases by value 1
But when i open an another internet Explorer (without closing
previous one) and type in address bar
http://localhost:8082/jsp-examples/SessionTrack/index.jsp
i am getting accessCount variable value same as in first ie
browser.
my doubt is why new session is not created for second internet
Explorer i opened.Any fault in settings of my internet explorer
thanks
|
 |
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
|
posted

0
|
|
Sounds like all windows of IE share the same cookies/sessions. I think that's true for all browsers, though.
|
 |
shriram iyer
Ranch Hand
Joined: Dec 10, 2003
Posts: 43
|
posted

0
|
Tim Moores wrote:Sounds like all windows of IE share the same cookies/sessions. I think that's true for all browsers, though.
How to distinguish one user from another user.
thanks
|
 |
Miku Ranjan
Ranch Hand
Joined: Oct 11, 2011
Posts: 98
|
|
Hi,
Are you using any security API ?
|
 |
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
|
|
shriram iyer wrote:
How to distinguish one user from another user.
Ask other user to use any other browser like firefox or give him a new PC/machine
|
 |
Pete Nelson
Ranch Hand
Joined: Aug 30, 2010
Posts: 147
|
posted

0
|
How to distinguish one user from another user.
thanks
If you want to simulate multiple requests, you need to have multiple browser sessions. Here are some options:
- install multiple browsers on your PC (IE, Firefox, Chrome, Opera, etc), run a different browser for each "user".
- use "firefox -P -no-remote" to run multiple Firefox profiles simultaneously (you will need to create some additional profiles)
I use both of the above, with the "-no-remote" option to firefox being used the most in my initial testing.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56554
|
|
|
Under what real-world circumstances do you expect more than one person to be bumping each other off the chair to use the same PC at the same time?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: session tracking
|
|
|