Hi all,
I've declared a class called SecurePage that inherits from the Page class
provided by the framework.
In this class I've declared a protected member called sessionState and a
method called loadSessionState(). loadSessionState initialises the
sessionState object when it's called.
My question is, seeing as the member variable sessionState is declared
globally at the top of SecurePage, do i need to worry about threads or is
the variable isolated per every request?
Thanks all
tceThere is an instance of the SecurePage class (and this the variable)
for every request, so this will be thread safe.
Scott
http://www.OdeToCode.com/blogs/scott/
On Fri, 10 Dec 2004 12:21:46 -0000, "thechaosengine"
<sh856531@.microsofts_free_email_service.com> wrote:
>Hi all,
>I've declared a class called SecurePage that inherits from the Page class
>provided by the framework.
>In this class I've declared a protected member called sessionState and a
>method called loadSessionState(). loadSessionState initialises the
>sessionState object when it's called.
>My question is, seeing as the member variable sessionState is declared
>globally at the top of SecurePage, do i need to worry about threads or is
>the variable isolated per every request?
>Thanks all
>tce
>
Should have read:
There is an instance of the SecurePage class (and THUS the variable)
for every request, so this will be thread safe.
I'm having real problems with basic communication skills this morning,
apologies.
Scott
http://www.OdeToCode.com/blogs/scott/
On Fri, 10 Dec 2004 09:17:38 -0500, Scott Allen
<bitmask@.[nospam].fred.net> wrote:
>There is an instance of the SecurePage class (and this the variable)
>for every request, so this will be thread safe.
Tuesday, March 13, 2012
Thread safety when subclassing the Page class
Labels:
asp,
class,
classprovided,
declared,
framework,
inherits,
net,
page,
safety,
securepage,
subclassing
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment