Skip to content

Ask About HttpContext.SetSessionStateBehavior #371

@Clounea

Description

@Clounea

Summary

Our repo uses HttpContext.SetSessionStateBehavior which are not supported by ASP.NetCore and this adapters.
I want to ask if there is equivalent and if there is plan to add them to adapter.

Motivation and goals

We need migrate code (an API in Sharepoint) to ASP.NetCore and we find that the APIs are not supported by ASP.NetCore.

In scope

  • HttpContext.SetSessionStateBehavior
  • HttpContext.SessionStateBehavior

From src code, It seems that the property is used to decide whether to acquire session state. But in the adapter, the session state is gotten from the feature.
I wonder if SetSessionStateBehavior is still needed.

Examples

Here is an example of HttpContext.SetSessionStateBehavior

if (IsDataAPI(context))
{
    context.SetSessionStateBehavior(System.Web.SessionState.SessionStateBehavior.Disabled);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIssues that have a PR open for them.up for grabsWe'd accept a contribution for this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions