sessionState 요소

  • Post author:
  • Post category:
  • Post comments:0 Comments
  • Post last modified:August 28, 2005

StateServer 모드를 사용하려면

  1. ASP.NET 상태 서비스가 세션 상태 정보를 저장할 원격 서버에서 실행 중인지 확인합니다. 이 서비스는 ASP.NET과 함께 설치되며 기본적으로 ‹Drive›:\systemroot\Microsoft.NET\Framework\version\aspnet_state.exe에 위치합니다.
  2. 응용 프로그램의 Web.config 파일에서 mode=StateServer 및 stateConnectionString 특성을 설정합니다. 예를 들어, stateConnectionString=“tcpip=dataserver:42424”를 설정할 수 있습니다.

SQLServer 모드를 사용하려면

  1. 세션 상태를 저장할 SQL Server가 있는 시스템에서 InstallSqlState.sql(기본 설치 위치는 ‹Drive›:\systemroot\Microsoft.NET\Framework\version)을 실행합니다. 이렇게 하면 새 저장 프로시저를 포함하는 ASPState라는 데이터베이스가 만들어지고 TempDB 데이터베이스에는 ASPStateTempApplications 및 ASPStateTempSessions 테이블이 만들어집니다.
  2. 응용 프로그램의 Web.config 파일에서 mode=SQLServer 및 sqlConnectionString 특성을 설정합니다. 예를 들어, sqlConnectionString=“data source=localhost;Integrated Security=SSPI;Initial Catalog=northwind”를 설정할 수 있습니다.
Author Details
Kubernetes, DevSecOps, AWS, 클라우드 보안, 클라우드 비용관리, SaaS 의 활용과 내재화 등 소프트웨어 개발 전반에 도움이 필요하다면 도움을 요청하세요. 지인이라면 가볍게 도와드리겠습니다. 전문적인 도움이 필요하다면 저의 현업에 방해가 되지 않는 선에서 협의가능합니다.
0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments