Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to use Cookieless SessionState On ASP.NET CORE 2.0

$
0
0

Hello guys

Now I try to convert ASP.NET 2.0 Projecto to ASP.NET CORE 2.0 Project

And I Could't  find the information of Cookieless SessionState.

like below.
http://localhost/default/(S(2sqchna54beo15zherkat44e))/default.aspx
                                            ^^^^^^^^^^^^^^^^^^SessionId

I Know Cookieless SessionState on  ASP.NET 2.0 , 
#Web.Config
<system.web>
<sessionState cookieless="true"/>
</system.web>

Also I know normal Session Future on ASP.NET CORE 2.0

Import Microsoft.AspNetCore.Session

And Change Startup.cs

public void ConfigureServices(IServiceCollection services)
{
services.AddDistributedMemoryCache();
services.AddSession( );

}

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
app.UseSession();
}






Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>