Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 69131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:31:31+00:00 2026-05-10T19:31:31+00:00

The IT department of a subsidiary of ours had a consulting company write them

  • 0

The IT department of a subsidiary of ours had a consulting company write them an ASP.NET application. Now it’s having intermittent problems with mixing up who the current user is and has been known to show Joe some of Bob’s data by mistake.

The consultants were brought back to troubleshoot and we were invited to listen in on their explanation. Two things stuck out.

First, the consultant lead provided this pseudo-code:

void MyFunction() {     Session['UserID'] = SomeProprietarySessionManagementLookup();     Response.Redirect('SomeOtherPage.aspx'); } 

He went on to say that the assignment of the session variable is asynchronous, which seemed untrue. Granted the call into the lookup function could do something asynchronously, but this seems unwise.

Given that alleged asynchronousness, his theory was that the session variable was not being assigned before the redirect’s inevitable ThreadAbort exception was raised. This faulure then prevented SomeOtherPage from displaying the correct user’s data.

Second, he gave an example of a coding best practice he recommends. Rather than writing:

int MyFunction(int x, int x) {     try      {         return x / y;      }     catch(Exception ex)     {         // log it         throw;     } } 

the technique he recommended was:

  int MyFunction(int x, int y, out bool isSuccessful)   {     isSuccessful = false;      if (y == 0)         return 0;      isSuccessful = true;      return x / y;   } 

This will certainly work and could be better from a performance perspective in some situations.

However, from these and other discussion points it just seemed to us that this team was not well-versed technically.

Opinions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T19:31:31+00:00Added an answer on May 10, 2026 at 7:31 pm

    I would agree. These guys seem quite incompetent.

    (BTW, I’d check to see if in ‘SomeProprietarySessionManagementLookup,’ they’re using static data. Saw this — with behavior exactly as you describe on a project I inherited several months ago. It was a total head-slap moment when we finally saw it … And wished we could get face to face with the guys who wrote it … )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Twisted has an IRC client (in twisted.words), and it supports… May 11, 2026 at 11:34 am
  • added an answer One way to do it is to pass properties as… May 11, 2026 at 11:34 am
  • added an answer It can't be done the way it's described in the… May 11, 2026 at 11:34 am

Related Questions

The IT department of a subsidiary of ours had a consulting company write them
The IT department where I work is trying to move to 100% virtualized servers,
The IT lady just gave me a laptop to keep! I've always wanted to
Warm Standby SQL Server/Web Server This question might fall into the IT category but
The assembly it's trying to find isn't the root assembly - it's a referenced
Is it the case that the entire restful verb is under a single all
Is it the same as overloading, if not, can you please provide and example
With the DataGridView it is possible to display cells containing some long text. The
Is it better to use a stored procedure or doing it the old way
if you browse the internet it's relatively easy to find code that modifies existing

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.