Change value in Web.config programatically

  • Thread starter Thread starter mg
  • Start date Start date
M

mg

How can I change the value of "timeout" in Web.config

<sessionState timeout="20" />

in one deployed app (project A) from a method call in a
WebForm (C#) that's running in another deployed app
(project B) on the same server.
 
AFAIK, you can't write to the config files programmatically, you have to
edit them manually. However, you can create a XML file with the same
structure and do with it what you please.
 
Back
Top