Webpart and Session Variable

For my debugging issues, can some one please show me how to use Session variable when developing WebPart and get it result display in the WebPart.

Many thanks,

Han


Answer this question

Webpart and Session Variable

  • Jehan Badshah

    Hi,

    Before you can use sessions you first have to enable the session state module in the web.config file in the sharepoint site. Just uncomment the following line:

    <!-- <add name="Session" type="System.Web.SessionState.SessionStateModule"/> -->

    After that you can use the session object like you'll normally do with web applications. Do you have any problems with your debugging process

    Grtz,
    Mart



  • Webpart and Session Variable