Shared variables in support library?

  • Thread starter Thread starter Fredrik Melin
  • Start date Start date
F

Fredrik Melin

Hi,

I have a support library with all functionallity I need to access my
business application on the web.

The problem is that Connection object, User object and some other objects
are Shared variables, running this in a ASP.NET application gave trouble of
course, due to the fact it is shared not within the session but within the
application.

(user 1 will get user 2's user data etc)

How can I solve this? Do I re-write the whole supportlibrary to use a local
connection object each time?
Or is there a way to make shared variables/properties as only shared within
the session?

Anyone else had the same problem?

Regards
Fredrik
 
Fredrik Melin said:
Hi,

I have a support library with all functionallity I need to access my
business application on the web.

The problem is that Connection object, User object and some other objects
are Shared variables, running this in a ASP.NET application gave trouble of
course, due to the fact it is shared not within the session but within the
application.

(user 1 will get user 2's user data etc)

How can I solve this? Do I re-write the whole supportlibrary to use a local
connection object each time?
Or is there a way to make shared variables/properties as only shared within
the session?

Session variables are only shared within the session.
 
Back
Top