Thread safety when subclassing the Page class

  • Thread starter Thread starter thechaosengine
  • Start date Start date
T

thechaosengine

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
 
There is an instance of the SecurePage class (and this the variable)
for every request, so this will be thread safe.
 
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.
 
Back
Top