zoukankan      html  css  js  c++  java
  • 进程外Session

    StateServer的进程外Session

    需要提前在服务中开启ASP.NET State Service服务

    然后web.config中进行配置

    <configuration>
        <system.web>
          <compilation debug="true" targetFramework="4.5" />
          <httpRuntime targetFramework="4.5" />
          <sessionState stateConnectionString="tcpip=127.0.0.1:42424" mode="StateServer"></sessionState> //这是具体配置
        </system.web>
    
    </configuration>

    SQLServer的进程外Session

    需要提前在VS开发人员命令行中进行配置

    aspnet_regsql -U 数据库登陆用户 -P 登陆密码 -ssadd -sstype c -d 数据库名称

    然后web.config中进行配置

    <configuration>
        <system.web>
          <compilation debug="true" targetFramework="4.5" />
          <httpRuntime targetFramework="4.5" />
          <sessionState sqlConnectionString="server=.;database=SessionDB;uid=sa;pwd=123456;" mode="SQLServer" allowCustomSqlDatabase="true"></sessionState>  //具体配置
        </system.web>
    
    </configuration>
  • 相关阅读:
    前端工程化
    前端模块化CommonJS&ES6
    为什么浮点型运算结果会有误差?
    RequestAnimationFrame知多少?
    CSS三栏布局
    秋招面试
    实现Storage
    Angular
    TypeScript
    微服务架构设计模式
  • 原文地址:https://www.cnblogs.com/ianism/p/4342395.html
Copyright © 2011-2022 走看看