Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 89a42e6

Browse files
davidfowlReubenBond
authored andcommitted
Removed session since its not used
1 parent d5533c0 commit 89a42e6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Web/WebMVC/Extensions/Extensions.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ public static void AddHealthChecks(this IServiceCollection services, IConfigurat
1212

1313
public static void AddApplicationSevices(this IServiceCollection services, IConfiguration configuration)
1414
{
15-
services.Configure<AppSettings>(configuration)
16-
.AddSession()
17-
.AddDistributedMemoryCache();
15+
services.Configure<AppSettings>(configuration);
1816

1917
if (configuration["DPConnectionString"] is string redisConnection)
2018
{

src/Web/WebMVC/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
app.UseServiceDefaults();
1616

1717
app.UseStaticFiles();
18-
app.UseSession();
1918

2019
// Fix samesite issue when running eShop from docker-compose locally as by default http protocol is being used
2120
// Refer to https://github.com/dotnet-architecture/eShopOnContainers/issues/1391

0 commit comments

Comments
 (0)