Previous Topic: Edit Encrypted Sections of Configuration FilesNext Topic: Edit the Encrypted connectionStrings Section in web.config


Edit the Encrypted sessionState Section in web.config

The user can edit the encrypted sessionState sections in web.config if the user has administrative privileges.

Follow these steps:

  1. Decrypt the sessionState section by entering one of the following commands:
    aspnet_regiis -pdf system.web/sessionState <IIS Root>\myapp
    aspnet_regiis -pd system.web/sessionState -app /myapp
    
  2. Edit the web.config file and make the required changes.
  3. Re-encrypt the sessionState section by entering one of the following commands:
    aspnet_regiis -pef system.web/sessionState c:\inetpub\wwwroot\myapp
    aspnet_regiis -pe system.web/sessionState -app /myapp