sample controller for checking authentication

This is some sample C# code that checks the FormsAuthentication cookie
value and returns appropriate data. This would be used in a MVC5 web
application.