Fix line highlights for "Configure Session State" (#18043)
parent
497169decd
commit
8ea9cb7c20
|
@ -89,7 +89,7 @@ To enable the session middleware, `Startup` must contain:
|
|||
|
||||
The following code shows how to set up the in-memory session provider with a default in-memory implementation of `IDistributedCache`:
|
||||
|
||||
[!code-csharp[](app-state/samples/3.x/SessionSample/Startup4.cs?name=snippet1&highlight=12-19,39)]
|
||||
[!code-csharp[](app-state/samples/3.x/SessionSample/Startup4.cs?name=snippet1&highlight=12-19,45)]
|
||||
|
||||
The preceding code sets a short timeout to simplify testing.
|
||||
|
||||
|
|
|
@ -44,11 +44,10 @@ namespace SessionSample2
|
|||
app.UseExceptionHandler("/Home/Error");
|
||||
app.UseHsts();
|
||||
}
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
app.UseStaticFiles();
|
||||
|
||||
app.UseHttpContextItemsMiddleware();
|
||||
|
||||
app.UseRouting();
|
||||
|
||||
app.UseAuthentication();
|
||||
|
|
Loading…
Reference in New Issue