dotnet / dotnet/systemweb-adapters

Sharing Session State Between Webforms Application and Blazor Server Application - Current Problems, Future Design Goals

Open
#413 0 comments 2 reactions 0 assignees View on GitHub
Needs: Triage :mag:
Dominant language
C#
Stars
384
Forks
76
Avg merge
2h 24m
Merged PRs (30d)
1

Description

## Summary

Currently using the System Web Adapters to share session state between Webforms app and Blazor Server app (in .net7) doesn't work at all, the session is always null on the HttpContext.

## Motivation and goals

I have read the issue (https://github.com/dotnet/systemweb-adapters/issues/382) and understand why this is a problem, however, I need to know what are future goals of sharing session state between Webforms and Blazor apps (see next paragraphs, items 1, 2).

1)
As mentioned in issue-382, in .net 8, when Blazor will support true (traditional) Server Side Rendering (SSR) Model, accessing the Session state will be possible. Nevertheless, there might be times, when I would like to use the Component as "Blazor Server component" by specifying the "rendermode=RenderMode.Server". In this component, I would like to access the session state from the Webforms application. The million dollar question is, are the plans to make this possible?

2)
Is sharing Session state between Blazor app (in SSR scenario) and Webforms app be possible/available (working) upon .net 8 release? Or I have to wait for this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.