如何存储Session
生活随笔
收集整理的這篇文章主要介紹了
如何存储Session
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一般情況下,我們喜歡使用Session儲存我們的變量。Asp.Net提供了下面一些方法儲存Session的值:
(1)InProc
(2)StateServer
(3)SQLServer
??????????????mode="InProc"
??????????????stateConnectionString="tcpip=127.0.0.1:42424"
??????????????sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
??????????????cookieless="false"
??????????????timeout="1"
??????/>
(1)mode="InProc"進程內
(2)mode="StateServer"后stateConnectionString="tcpip=127.0.0.1:42424"有效,要啟動狀態服務
(3)mode="SQLServer "后sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"有效,要有數據庫表。
(1)InProc
(2)StateServer
(3)SQLServer
??????????????mode="InProc"
??????????????stateConnectionString="tcpip=127.0.0.1:42424"
??????????????sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
??????????????cookieless="false"
??????????????timeout="1"
??????/>
(1)mode="InProc"進程內
(2)mode="StateServer"后stateConnectionString="tcpip=127.0.0.1:42424"有效,要啟動狀態服務
(3)mode="SQLServer "后sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"有效,要有數據庫表。
轉載于:https://www.cnblogs.com/myssh/archive/2009/05/31/1493208.html
總結
以上是生活随笔為你收集整理的如何存储Session的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 九种东西吃多会...
- 下一篇: PL/SQL Developer中,存储