Solved

Multi user problem asp.net

Posted on 2006-07-19
1
308 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 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