• 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 management technique

 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's lacking in this session management technique?

Whenever we need to put something in session, we do:



And whenever we need to get from session:



Say 1000 users are hitting the site at the same time and same piece of code is getting executed for all 1000 users (requests) - they are doing the same thing. Now this code will be executed in 1000 threads - since request object is different for all 1000 threads, session object will also be different and there will not be any "clash" between users - and they will never access others' information.

Please let me know if my assumptions are not correct.

Thanks.
[ October 15, 2008: Message edited by: ankur rathi ]
 
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
It has nothing to do with the requests, but yes, each user will have their oun session.
 
reply
    Bookmark Topic Watch Topic
  • New Topic