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, 2017. It is now read-only.
I just started using CookieTempData provider on a site I'm developing. I'm utilizing it to store success/error messages that need to be preserved on redirects.
It works well on most pages. However, if I use it when signing out of my site using FormsAuthentication.SignOut(), the TempData is not persisted on the Redirect.
I used Fiddler to verify that there are no intermediate redirects occurring.
I wasn't sure if FormsAuthentication.SignOut() was doing something extra behind the scenes so I tried manually expiring the authentication cookie. However, the odd behavior still occurred.
I'm wondering if it has something to do with expiring HttpOnly auth cookies.
This was in VS 2013 / Embedded IIS / .Net 4.5
The text was updated successfully, but these errors were encountered:
TempData is signed and part of the input to the signature is the current username. So if you're preserving tempdata across a request where the authentication is changed (signin or signout) then the tempdata will be corrupt (will not work).
I just started using CookieTempData provider on a site I'm developing. I'm utilizing it to store success/error messages that need to be preserved on redirects.
It works well on most pages. However, if I use it when signing out of my site using FormsAuthentication.SignOut(), the TempData is not persisted on the Redirect.
I used Fiddler to verify that there are no intermediate redirects occurring.
I wasn't sure if FormsAuthentication.SignOut() was doing something extra behind the scenes so I tried manually expiring the authentication cookie. However, the odd behavior still occurred.
I'm wondering if it has something to do with expiring HttpOnly auth cookies.
This was in VS 2013 / Embedded IIS / .Net 4.5
The text was updated successfully, but these errors were encountered: