Click to See Complete Forum and Search --> : Web service question


FaisalJ
April 23rd, 2003, 05:27 AM
Im using the Application attribute to store some information. For how long this attribute remains valid.

I mean does the IIS unloads the webservice from the memory after some time. Basicaly I need to mentain state of a a counter so that when I reqeust comes to the server after a gap of one day or more (assuming the server meachine was running) I get the correct value of the counter.

Thanks!

hellomadhu
April 23rd, 2003, 08:40 AM
IIS does not unload or stop the webservice automaticaly.
the application variable remains in memory as long as the service is running.

one the service is restarted the variable will be initialized.

but i would rather suggest the counter values to be stored in a database or some file because some day if the server goes down for maintenence ur counter will be initilzed.

FaisalJ
April 24th, 2003, 12:49 AM
Thanks for the reply!

So for how long the service remains running? As long as the Computer hosting the web service is running?

hellomadhu
April 24th, 2003, 01:40 AM
yes, u are right !