• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

session tracking

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic