Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)
/** @property */ public boolean get_KeepSessionAlive () /** @property */ public void set_KeepSessionAlive (boolean value)
public function get KeepSessionAlive () : boolean public function set KeepSessionAlive (value : boolean)
Property Valuetrue to keep the report server session from expiring; otherwise false. The default is true.
In remote processing mode, setting this property to true causes the ReportViewer control to keep the report server session from expiring. The ReportViewer control pings the report server to keep the report server session from expiring. If you want to keep a report server session active for a user even when there is no activity on their part, set KeepSessionAlive to true. To let the session timeout and expire in your application, set KeepSessionAlive to false.
In local processing mode, setting this property has no effect.
If KeepSessionAlive is set to false and the report server session has already been created, you cannot set this property to true. Doing so will cause an InvalidOperationException to be thrown.