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

  • SEARCH
  • Home
  • 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 1021333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:17:47+00:00 2026-05-16T11:17:47+00:00

I have a legacy ASP.NET application in which there are some session/concurrency related issues

  • 0

I have a legacy ASP.NET application in which there are some session/concurrency related issues and inconsistency.

I am looking for the best way to do the re-design/

This is the scenario
A. Multiple users can log on to the site and access/modify a Ticket’s details. However, if a user is already in the process of altering the workflow…the TicketId,UserId are stored in the DB with a time stamp.

B. If another user tries to access the same Ticket while its already being worked upon by a different user. Then, data is accessed from the DB and the most recent user is given a info-box saying that the Ticket is locked.

C. If the initial/locked-in user does a “Sign-Out” the lock is released in the DB. Now, the subsequent user can access with out hassle

All this fine…but if the initial user ..instead of “signing out”…just closes the browser window..the application still remains locked.

How to avoid this ? What is the best design in this scenario?

  • 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. Editorial Team
    Editorial Team
    2026-05-16T11:17:47+00:00Added an answer on May 16, 2026 at 11:17 am

    This is called pesimistic concurrency. You can handle SessionEnd event (but only if you use InProc session) and release the lock on the ticket. The problem is that Session by default expires after 20 minutes. So if you really want to use pesimistic concurrency you have to make session as short as possible but this can affect current user – session can be lost during his work in browser. To avoid this implement javascript timer and some ping javascript / ajax operation which will keep your session alive while the user has the browser opened. If he close the browser without releasing ticket session will expire quickly. There is still disadvantage – if your user close browser and after a while opens new one all his session data will be lost.

    Edit: Also this solution does not handle situation where user opens browser, locks the ticket and goes away for 2 hours lunch. If you also want to handle this solution you can combine it with some timeout on ticket activity.

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

Sidebar

Related Questions

I have a legacy application at my hand which uses ASP.NET WebForms. My problem
I have a legacy ASP application which - at some point soon - needs
We have some legacy ASP.NET code that detects if a request is secure, and
Given: ASP.Net application which uses a legacy COM library legacy COM library which is
I have a legacy application that uses the ASP.NET membership provider w/ SQL backend.
We have a legacy ASP.NET web site (not web application, so I can freely
I have some legacy classic ASP code (not ASP.Net, but ASP), and I want
I have a rather complex legacy ASP.Net application that is under continuous development, and
Here's the scenario I have an ASP.NET 4.0 application which has a LOT of
We have a legacy ASP.NET site which uses the encryption methods here: http://www.codekeep.net/snippets/af1cd375-059a-4175-93d7-25eea2c5c660.aspx When

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.