This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes JSP and the fly likes Understanding Sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

Understanding Sessions

Hassan Schnieder
Greenhorn

Joined: Jun 09, 2006
Posts: 11
--------------------------------------------------------------------------------
Hello everyone, I'm new here. Nice to meet you.

Let me rephrase my question...

1) I have someone log into my application.
2) The user has to add his "username","password".
3) My application checks the database to see if the username/password already exists.
4) My application returns, "username"/"password" does not exist..."username/password" added to database.

MY QUESTION.
what if 5 people are logging in and checking the data at the same time. Do sessions prevent more than one user viewing or modifying the data in a single instance? I want to prevent someone adding a password that doesn't exist at the same time someone may be adding that password.

Please help me understand this process, if sessions don't take care of that and I don't have to worry then how does one implement code to prevent an error.

best regards,
Hassan
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63227
    
  69

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Have you checked out Aspose?
 
subject: Understanding Sessions
 
It's not a secret anymore!