You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
The message is show under the form when the button is clicked
Actual results
The message isn't shown until manually navigating to /Home/Index
Details
This line seems wrong, I believe it shouldn't be setting the cookie Path unless PathBase is not empty, given the intent is to restrict the cookie to this logical site, and setting the cookie's Path to an empty string flows that to the browser where it appears to be interpreted as "restrict cookie to the current path only". This ends up making it impossible to use with conventional routes where the path between GET and POST is always different.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Create a default MVC app & configure it to use
CookieTempDataProvider
Add an action method on
HomeController
to accept a form post that sets a temp data value and redirects back to the home page:Add a
<form>
in theViews/Home/Index.cshtml
view file to allow posting to the action and showing the message in temp data:Run the site & click the button on the home page
Expected results
The message is show under the form when the button is clicked
Actual results
The message isn't shown until manually navigating to
/Home/Index
Details
This line seems wrong, I believe it shouldn't be setting the cookie
Path
unlessPathBase
is not empty, given the intent is to restrict the cookie to this logical site, and setting the cookie'sPath
to an empty string flows that to the browser where it appears to be interpreted as "restrict cookie to the current path only". This ends up making it impossible to use with conventional routes where the path between GET and POST is always different.The text was updated successfully, but these errors were encountered: