wood burning stoves*
The moose likes JSP and the fly likes session tracking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "session tracking" Watch "session tracking" New topic
Author

session tracking

shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43
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: 2408
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
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

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: 60788
    
  65

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: session tracking
 
Similar Threads
how to declare....and pass parameters..
Jsp Sessions
Session counting problem
problem executing the servlet
Session Tracking with cookies disabled.