Skip to content

Commit 8ea9cb7

Browse files
authored
Fix line highlights for "Configure Session State" (#18043)
1 parent 497169d commit 8ea9cb7

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

aspnetcore/fundamentals/app-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ To enable the session middleware, `Startup` must contain:
8989

9090
The following code shows how to set up the in-memory session provider with a default in-memory implementation of `IDistributedCache`:
9191

92-
[!code-csharp[](app-state/samples/3.x/SessionSample/Startup4.cs?name=snippet1&highlight=12-19,39)]
92+
[!code-csharp[](app-state/samples/3.x/SessionSample/Startup4.cs?name=snippet1&highlight=12-19,45)]
9393

9494
The preceding code sets a short timeout to simplify testing.
9595

aspnetcore/fundamentals/app-state/samples/3.x/SessionSample/Startup4.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
4444
app.UseExceptionHandler("/Home/Error");
4545
app.UseHsts();
4646
}
47+
4748
app.UseHttpsRedirection();
4849
app.UseStaticFiles();
4950

50-
app.UseHttpContextItemsMiddleware();
51-
5251
app.UseRouting();
5352

5453
app.UseAuthentication();

0 commit comments

Comments
 (0)