Thread safety when subclassing the Page class

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
 
S

Scott Allen

There is an instance of the SecurePage class (and this the variable)
for every request, so this will be thread safe.
 
S

Scott Allen

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.
 

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

No members online now.

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,830
Latest member
ZADIva7383

Latest Threads

Top