Hi,
I have a problem, using Shared objects for Database connection information,
User information, other "application wide settings" I run into trouble when
using the dll I wrote on the WEB in ASPx.
(thought and tried to re-write the whole system to take all needed data as
parameter to the New() property, but that was just to much work.)
I actually solved it by checking for the HttpContext from the page in my
component and storing the variables not globally if a context exists, but
the session variables instead.
Now a customer wants my .NET functionallity on there website without
re-writing the whole webb at one time, so I wrote a COM bridge between
ASP -> .NET dll
Of course my session handler in the .NET dll didnt work because I couldnt
access the context of the page on a regular ASP.
Then it hit me, System.Web.HttpContext.Current is a Shared property, that
handles "user" unique items on the web, my question is the following:
How is that component written? How can they have shared that has all
information for each user, is the property .Current only returning something
from a collection maybe? How can I write a simular thing for my objects?
Any ideas?
Regards
Fredrik Melin