Solved

Multi user problem asp.net

Posted on 2006-07-19
1
306 Views
Last Modified: 2012-05-05
Hi,

I have created a prototype asp.net application that uses framework v2 in c#.  I have used session variables and apply standard insert statements to update a sql server database as needed - however, when more than one user is logged into the website, only the records created by a single user make it to the database.  

SessionState mode is set to inproc, the default.  I am using basic forms authentication with a sql server table of usernames/passwords.  What are the possible causes?


0
Comment
Question by:jasoncpp
1 Comment
 
LVL 24

Accepted Solution

by:
Justin_W earned 500 total points
ID: 17140231
It sounds like this is most likely totally unrelated to session issues.

Probable causes:

1. Your users' sessions are all calling some shared code for the DB update, and the shared code isn't thread safe. E.g. Your code might not open and close connections properly or commit transactions properly if multiple threads are simultaneously accessing the code.

2. Your app is encountering DB concurrency errors where multiple users are trying to update the same data simultaneously. If this is the case, an Exception should occur somewhere. If you aren't seeing any logs of such an occurrence, your event handling code may be "hiding" the exception if you aren't dealing with them properly.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

806 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question