ASP.NET MVC Authentication Cookie Not Being Retrieved

Posted by Jamie Wright on Stack Overflow See other posts from Stack Overflow or by Jamie Wright
Published on 2010-06-07T11:43:36Z Indexed on 2010/06/07 12:42 UTC
Read the original article Hit count: 399

Filed under:
|
|
|

I am having a hard time implementing "Remember Me" functionality in an MVC application with a custom principal. I have boiled it down to ASP.NET not retrieving the authentication cookie for me. I have included a snaphot below from Google Chrome.

  1. Shows the results of Request.Cookies that is set within the controller action and placed in ViewData for the view to read. Notice that it is missing the .ASPXAUTH cookie

  2. Shows the results from the Chrome developer tools. You can see that .ASPXAUTH is included here.

alt text

Does anyone know what the issue may be here? Why does ASP.NET not read this value from the cookie collection?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc