Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Instance Variables / HTTP Handler 1

Status
Not open for further replies.

dace

Programmer
Jul 21, 2001
263
US
Hi, I have a fairly basic question -

If I have a class acting as a custom http handler that handles http page requests (by implementing (HttpHandler.ProcessRequest), when does it get instantiated, and is it shared across sessions? I'm basically wondering, if I have private class variables in my handler, will each session have a different instance of those variables or will they be shared?

Thanks for the help!
 
The variables will not be shared. Each request news up an instance of the HttpHandler, and each instance has its own variables.

HttpHandlers are fired as soon as the request comes in, before anything else is done. It's before any Global or Page events.

-paul

penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top