ASP.NET Session Timeout Issue with ReportViewer in an iframe

Shende1, Pankaj 0 Reputation points
2024-09-28T07:35:47.39+00:00

I'm using the following setup to load SSRS reports with the <rsweb:ReportViewer> control in an ASP.NET web application:

<rsweb:ReportViewer 
    id="RptViewer" 
    runat="server" 
    width="100%" 
    skinid="rv" 
    ProcessingMode="Remote" 
    ZoomMode="FullPage">
</rsweb:ReportViewer>

My web.config session settings are configured like this:

<system.web>
   <sessionState cookieless="UseCookies" mode="InProc" timeout="20" cookieSameSite="None" />
</system.web>

We're using .NET Framework 4.8 on a server in a web farm setup. When loading the ReportViewer via an iframe, we're encountering ASP.NET session timeout errors.

Could this issue be related to the ReportViewer's support for iframes? Do we need a custom HTTP handler to maintain the session across the iframe?

If anyone has faced a similar issue, your guidance would be greatly appreciated.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,823 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,474 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.