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 8957609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:01:51+00:00 2026-06-15T15:01:51+00:00

I need some help on a problem that’s been troubling me for awhile now

  • 0

I need some help on a problem that’s been troubling me for awhile now on an application at work.

Essential I am using an HTTP handler written VB.net that seems to exibit some odd behavior from time to time. Below is a sample of the piece of code where I see the error. I’ve simplified the variables since some of them hold company data

Public Class wmf
Implements IHttpHandler, IRequiresSessionState

Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable
    Get
        ' Return false in case your Managed Handler cannot be reused for another request.
        ' Usually this would be false in case you have some state information preserved per request.
        Return True
    End Get
End Property

Private EmployeeID As string
Private Category As string


Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest

'' handles user session and writes to database using the private variables above.

End Sub

This is mostly pseudo code (so ignore any best practices), but I’ve had issues where from time to time is seems or appears that the private variables in this class when populated from session data (or any data that may differ from each instantiation) act like shared (static) variables.

Do any of you folks see any problem with putting private variables like this in an HTTP handler that will be hit by multiple users having concurrency issues?

I’ve actually had this class with a basic logger show a variable retain the value from a user who hit the site and created an instance of this class. Is that possible with the way it’s setup or am I imagining this?

Thanks for any insight

  • 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-06-15T15:01:53+00:00Added an answer on June 15, 2026 at 3:01 pm

    My guess is that IsReusable returning true causes your problems. It will cause values to be retained since the object is reused for several requests.

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

Sidebar

Related Questions

I am writing a WPF application using C# and I need some help with
I know that my problem is the trivial one, but I need some help.
i need some help with a little problem that occurred today. To show the
I have a problem that I need some help on but I feel I'm
I need some help using a .NET Wrapper for Google chrome. The problem is
I need some help! I have no doubt this is a dumb problem that
Need some help with this problem in implementing with XSLT, I had already implemented
I need some help in solving this problem. We have a large amount of
I need some help with a small php problem. But i dont know how
I need some help in getting this right, problem Write a function which takes

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.