in Education by
I am developing a c# application, in which the server gets requests from many clients at a time. Each client also gets their data from different databases. In this situation sometimes data leakage is happening, means clients get data from an incorrect database. Say for example client1 should get data from db1 and client2 gets data from db2. Instead they get data from opposite databases; client1 gets from db2 and client2 gets from db1. I am adding the code below where it collects the data. public string List() { Response.ContentType = ContentType.Xml; try { ThingzFilter filter = null; Dictionary parameters = new Dictionary(); if (Id!="") { // get parameters from http request foreach (HttpInputItem param in Request.Param) parameters.Add(param.Name, param.Value); setServerURLs(); //Request.Clear(); if (Request.QueryString["lang"].Value != null) { ThingzDB.TzThing.get_language = Request.QueryString["lang"].Value.ToString(); } else { ThingzDB.TzThing.get_language = SessionDatabase.DefaultLanguage; } } ThingzDatabase db = SessionDatabase; langStr = db.Language; // this is run if there was no ID supplied // which means we want all items of all types if (Id == "") { if (Request.AcceptTypes == null) { //TypeController.session_id = Request.QueryString["sessionid"].Value; jobs.Add(Request.QueryString["sessionid"].Value); if (nextJobPos > jobs.Count - 1) return ""; else { TypeController.session_id = jobs[nextJobPos]; nextJobPos++; langStr = SessionDatabase.Language; } filter = new AllThingzFilter(SessionDatabase, parameters, langStr); TypeController.session_id = ""; filter.Execute(); } In this server is console application and clients are windows where the site names , means the databse names are mentioned. Please give me a solution to overcome this issue. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

Related questions

0 votes
    I am currently using a LINQ query to read an XML file e.g. some_text some_more_text into a list ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    let's say i have an interface as below public interface ConditionChecker { boolean isInCondition(Person p); ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    let's say i have an interface as below public interface ConditionChecker { boolean isInCondition(Person p); ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    let's say i have an interface as below public interface ConditionChecker { boolean isInCondition(Person p); ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 20, 2022 in Education by JackTerrance
0 votes
    We've implemented a CollectionConstraint for Nunit in version 2.4.3 in C#. Some of our developers have ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    Which of the following is the correct way of implementing an interface salary by class manager? (a) class manager ... Packages of Java Select the correct answer from above options...
asked Feb 23, 2022 in Education by JackTerrance
0 votes
    Which of the following is the correct way of implementing an interface A by class B? (a) class B extends A{ ... & Packages of Java Select the correct answer from above options...
asked Feb 23, 2022 in Education by JackTerrance
0 votes
    I have implemented a quadtree in Mathematica. I am new to coding in a functional programming language like ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 23, 2022 in Education by JackTerrance
0 votes
    solve Any four Input two output problems Implementing dont cares in the K-maps Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
0 votes
    Instead of implementing single computer & its internet bandwidth, a ____________ utilizes various systems & their ... Security:,Cyber Security-Jobs:,Cyber Security Applications...
asked Oct 31, 2021 in Education by JackTerrance
0 votes
    Which of the following is used for implementing inheritance through an interface? (a) inherited (b) using (c ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of the following is used for implementing inheritance through class? (a) inherited (b) using (c) ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of the following is the correct way of implementing an interface salary by class manager? (a) class ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...