What is the maximum size a session variable can hold?

前端 未结 2 1140
刺人心
刺人心 2020-12-03 16:15

What is the maximum size a session variable can hold ? I am trying to store object in session variable, if object size is under 80 KB, then working fine and if the size is g

相关标签:
2条回答
  • 2020-12-03 16:49

    From what i can think of, storing files in a session variable is a bad choice! Instead you can think of putting them into a temp location and then when upload is clicked you can put the to the real storage. Later on you can clear off the temp storage.

    0 讨论(0)
  • 2020-12-03 16:51

    Try to change requestLengthDiskThreshold to this:

    <system.web>
        <httpRuntime executionTimeout="90" 
                     maxRequestLength="20000" 
                     useFullyQualifiedRedirectUrl="false" 
                     requestLengthDiskThreshold="8192"/>
    </system.web>
    
    0 讨论(0)
提交回复
热议问题