Setting sessionState's customProvider programmatically
<p>In my <code>web.config</code> file, I've declared 2 sessionState providers:</p>

<pre><code>&lt;sessionState mode="Custom" customProvider="SessionProvider1"&gt;
    &lt;providers&gt;
        &lt;add name="SessionProvider1" ... /&gt;
        &lt;add name="SessionProvider2" ... /&gt;
    &lt;/providers&gt;
&lt;/sessionState&gt;
</code></pre>

<p>Now I would like to switch the <code>customProvider</code> to <code>SessionProvider2</code> at run-time... Is there any way to do this, apart from modifying the <code>web.config</code> programmatically?</p>

<p>Thanks.</p>
