다음을 통해 공유


ReportViewer.KeepSessionAlive 속성

웹 페이지가 브라우저에 표시되는 한 사용자 세션이 만료되지 않도록 할지 여부를 나타내는 Boolean 값을 가져오거나 설정합니다.

네임스페이스:  Microsoft.Reporting.WebForms
어셈블리:  Microsoft.ReportViewer.WebForms(Microsoft.ReportViewer.WebForms.dll)

구문

‘선언
<WebBrowsableAttribute(True)> _
Public Property KeepSessionAlive As Boolean
    Get
    Set
‘사용 방법
Dim instance As ReportViewer
Dim value As Boolean

value = instance.KeepSessionAlive

instance.KeepSessionAlive = value
[WebBrowsableAttribute(true)]
public bool KeepSessionAlive { get; set; }
[WebBrowsableAttribute(true)]
public:
property bool KeepSessionAlive {
    bool get ();
    void set (bool value);
}
[<WebBrowsableAttribute(true)>]
member KeepSessionAlive : bool with get, set
function get KeepSessionAlive () : boolean
function set KeepSessionAlive (value : boolean)

속성 값

유형: System.Boolean
사용자 세션이 만료되지 않도록 하려면 true이고, 그렇지 않으면 false입니다. 기본값은 true입니다.

주의

이 속성을 true로 설정하면 ASP.NET 응용 프로그램에서 세션이 사용되는 경우 ReportViewer 컨트롤은 ASP.NET 세션이 만료되지 않도록 합니다. 또한 원격 처리 모드에서 ReportViewer 컨트롤은 보고서 서버 세션이 만료되지 않도록 합니다.

활동이 없는 경우에도 사용자를 위해 세션을 활성 상태로 유지하려면 KeepSessionAlive를 true로 설정합니다.

로컬 및 원격 처리 모드에서 ReportViewer 컨트롤은 웹 서버에 ping을 수행하여 ASP.NET 세션이 사용되는 경우 ASP.NET 세션을 활성 상태로 유지합니다.

KeepSessionAlive를 false로 설정하면 사용자가 웹 페이지와 상호 작용하는 한 사용자 세션이 활성 상태로 유지됩니다. 사용자 세션은 웹 페이지의 비활성 기간 후에 만료됩니다. ASP.NET 세션이 만료되면 사용자가 ReportViewer와 다시 상호 작용할 때 “ASP.NET 세션이 만료되었거나 찾을 수 없습니다.”라는 메시지가 표시됩니다. 보고서 서버 세션이 만료된 경우 사용자가 ReportViewer와 다시 상호 작용하면 rsExecutionNotFound 오류가 throw됩니다.

참고 항목

참조

ReportViewer 클래스

Microsoft.Reporting.WebForms 네임스페이스