When you upload a DLL in the folder "bin" all users lose session

5

Every time I upload a DLL from my site, I drop all users who need session to stay logged in.

I was using the build that turns everything into .dll and .compiled however when compiling to .aspx + .dll the same thing happens.

ex:

I upload the DLL responsible for entities crashes everyone.

Is this normal in ASP.NET?

Should I change the security system in administration to not use Session?

Am I compiling wrong?

(Precompile during publishing > Allow precompiled site to be updatable)

In ASP Classic I could change multiple files without dropping session ! Is this a limitation of ASP.Net or am I doing it wrong?

    
asked by anonymous 02.05.2014 / 16:14

1 answer

5

To use the out-of-process server, you have to:

  • Ensure that the session server is active

    The ASP.NET session server is installed as a Windows service

    In the Run Windows box ( Windows + R ) type services.msc and find the service ASP.NET State Service ... that's it, it has to be active.

  • configure web.config

    <configuration>
      <system.web>
        <sessionState mode="StateServer"
          stateConnectionString="tcpip=localhost:42424"
          cookieless="false"
          timeout="20"/>
      </system.web>
    </configuration>
    

Reference:

link

    
02.05.2014 / 16:28