How do I pass value to MVC3 master page ( _layout)?
===

I have a custom modelbinder, its check the authentication cookie and return the value.

    public class UserDataModelBinder<T> : IModelBinder
    {
        public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
        {

            if (controllerContext.RequestContext.HttpContext.Request.IsAuthenticated)
            {
                var cookie =
                    controllerContext.RequestContext.HttpContext.Request.Cookies[FormsAuthentication.FormsCookieName];

                if (cookie == null)
                    return null;

                var decrypted = FormsAuthentication.Decrypt(cookie.Value);

                if (!string.IsNullOrWhiteSpace(decrypted.UserData))
                    return JsonSerializer.DeserializeFromString<T>(decrypted.UserData);
            }

            return null;
        }
    }


if I need to use it, I just need to pass it to the action. everything works.

    public ActionResult Index(UserData userData)
    {
        AccountLoginWidgetVM model = new AccountLoginWidgetVM();
        if (null != userData)
            model.UserData = userData;
 
        return View(userData);
    }


However, I want to use it in my master page, because once user login, i want to display their info on the top on every page.  I tried a few things, coudln't get it work


     @Html.RenderPartial("LoginPartial", ???model here??)  



     