Session timing out early

Discussion in 'Site Programming, Development and Design' started by andrew, Apr 4, 2010.

  1. website made with Visual Studio asp.net
    I'm having trouble with the Session timing out after only a few minutes. My sessionState in web.config looks like this: <sessionState mode="InProc" cookieless="true" timeout="20" />

    I read some forums on this and it seems I should be using State Server or SQL Server for the mode.

    So I created a new sql database using the Winhost control panel. Used IIS Manager to connect to my site and set the Session State mode to SQL server and enabled custom database. Now I get the following error when going to my domain: http://pastebin.com/WDTrbe8q
    I should mention that I haven't used SQL databases before, maybe I have to do some more work to set it up??

    I also tried setting it to State Server but I don't know what to use as the connectionstring in this case.

    Anyways I just want to fix the Session from timing out early, any help would be appreciated, thanks!
     
    Last edited by a moderator: Oct 14, 2015
  2. Last edited by a moderator: Oct 14, 2015
  3. That worked :D
     
  4. Ray

    Ray

    That's great to hear.
     

Share This Page