Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

session tracking

 
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
 
Saloon Keeper
Posts: 6597
161
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • 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
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Are you using any security API ?
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • 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
 
Ranch Hand
Posts: 147
Eclipse IDE Tomcat Server Debian
  • 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.
 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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?
 
All of the following truths are shameless lies. But what about this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic