Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
why sessions work uncorrectly?
I have a programm that work with some users,sometimes when 2 user login in system the information are uncorrectly insert in Database,how can I solve this problem?I work With .net 2003
2 Answers
- Neeraj Yadav♥Lv 61 decade agoFavorite Answer
well yes i know the solution in J2ee
We do this through singleton design pattern i mean class where we do create session is singleton that mean its synchronized for only one user at time.You can follow same patterns in .Net codes. so that only one thread can access that session at one time.Its widely accepted solution for session related problems.
Right now you dont have such functionality in your code that why it makes two user session id at same time which creates confilcts btwn sessionID the one which logs later will override earlier one.
Hope this will help
Cheers:)
- Serge MLv 61 decade ago
What do you mean "uncorrectly"?
What should be and what happens?
What code are you using?