• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session tracking

 
shriram iyer
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2895
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like all windows of IE share the same cookies/sessions. I think that's true for all browsers, though.
 
shriram iyer
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Are you using any security API ?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 147
Debian Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65122
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic