Those will just clear the variables, not restart the app or session. I do
not think you can (or should) programmatically restart the app. You could
all Session.Abandon() to restart the session.
If there is some code that you want to run after you reset the variables and
when the app/session starts, I would suggest creating some function that
both places can call.
"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:Oq**************@TK2MSFTNGP12.phx.gbl...
Thanks,
After execute Application.Clear(), and Session.Clare() can I execute the
code in Global.asax's Application_Start and Session_Start event?
"Peter Rilling" <pe***@nospam.rilling.net>
¼¶¼g©ó¶l¥ó·s»D:e8****************@TK2MSFTNGP10.phx .gbl... How about something like Application.Clear() and Session.Clear().
You probably do not want the code to be able to restart itself, but if
you are desperate, you could also spawn a process to the "iisreset"
command.
"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...I want to renew all values of Application and Session.
How can I restart application in program?