Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Phil Makower 3 posts 23 karma points
    Apr 22, 2024 @ 13:42
    Phil Makower
    0

    SessionStateTempDataProvider instead of CookieTempDataProvider (want to store Form Model in TempData for Surface Controller form)

    Since 2017(!) https://github.com/aspnet/Announcements/issues/225 The default TempDataProvider in MVC is Cookie (was SessionState)

    I want to store Form data in TempData. This is what my SurfaceController did in v7.

    I can serialize the Form model to TempData. BUT this creates MULTIPLE LARGE cookie in the browser which results in HTTP 400 Request Headers too large when I POST the form!

    There does not seem to be the possibility to change the provider in Startup.cs

Please Sign in or register to post replies

Write your reply to:

Draft