M
Mark Stevens
I have an ASP.NET (.NET 2) application with a something similar to the
following:
public static class A
{
protected static string str;
// Other methods...
}
Public Class B : A
{
// Public methods using str...
}
My query concerns the singleton nature of str. So if my site has two
users logged does each see their own version of the singleton class or
a shared one?
I would expect that the class is singleton to the user but I cannot
find anything which confirms this.
Thanks in advance,
Mark
--
|\ _,,,---,,_ A picture used to be worth a
ZZZzzz /,`.-'`' -. ;-;;, thousand words - then along
|,4- ) )-,_. ,\ ( `'-' came television!
'---''(_/--' `-'\_)
Mark Stevens (mark at thepcsite fullstop co fullstop uk)
following:
public static class A
{
protected static string str;
// Other methods...
}
Public Class B : A
{
// Public methods using str...
}
My query concerns the singleton nature of str. So if my site has two
users logged does each see their own version of the singleton class or
a shared one?
I would expect that the class is singleton to the user but I cannot
find anything which confirms this.
Thanks in advance,
Mark
--
|\ _,,,---,,_ A picture used to be worth a
ZZZzzz /,`.-'`' -. ;-;;, thousand words - then along
|,4- ) )-,_. ,\ ( `'-' came television!
'---''(_/--' `-'\_)
Mark Stevens (mark at thepcsite fullstop co fullstop uk)