Shared variables in support library?

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
 
J

John Saunders

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
KetoBurn
Top