I am New In asp.net I just make a login page and i want to show user info name Adress etc when i successfuly login : >         ## This is controller code for  Login ##>  This is User Login Controller code where  I authenticating user EmailID and password when
> user login redirected to Home Controller where i want to show user
> info
> 
> 
> 
>         >         [HttpPost]
>         >         [ValidateAntiForgeryToken]
>         >         public ActionResult Login(UserLogin login, string ReturnUrl = "")
>         >         {
>         >             string message = "";
>         >             using (LoginEntities dc = new LoginEntities())
>         >             {
>         >                 var v = dc.Users.Where(a => a.EmailID == login.EmailID).FirstOrDefault();
>         >                 var n = dc.Users.Where(a => a.Password == login.Password).FirstOrDefault();
>         >                 if (v != null || n != null )
>         >                 {
>         >                     if (string.Compare(Crypto.Hash(login.Password), v.Password) == 0)
>         >                     {
>         >                         int timeout = login.RememberME ? 525600 : 20;
>         >                         var ticket = new FormsAuthenticationTicket(login.EmailID,login.RememberME,timeout);
>         >                         string encrypted = FormsAuthentication.Encrypt(ticket);
>         >                         var cookie = new HttpCookie(FormsAuthentication.FormsCookieName, encrypted);
>         >                         cookie.Expires = DateTime.Now.AddMinutes(timeout);
>         >                         cookie.HttpOnly = true;
>         >                         Response.Cookies.Add(cookie);
>         >                         
>         >                         if (Url.IsLocalUrl(ReturnUrl))
>         >                         {
>         >                             return Redirect(ReturnUrl);
>         > 
>         >                         }
>         >                         else
>         >                         {
>         >                             return RedirectToAction("Index", "Home");
>         >                         }
>         > 
>         >                     }
>         >                     else
>         >                     {
>         >                         message = "Invalid Credential Provided";
>         >                     }
>         >                 }
>         >                 else
>         >                 {
>         >                     message = "Invalid Credential Provided";
>         >                 }
>         > 
>         > 
>         >             }
>         >             ViewBag.Message = message;
>         >             return View();
>         >             }
>         
>             
>                      
>     
>     ##Home Contrler and index action where i redirect when i login##>  This is Home COntroller Where I redirected After Loging successfully
> pleas some one give a code for home controlller and index action where
> i can  Get Id of user That login and and and tell me how to show that
> in view 
>       
>     
>     >  public class HomeController : Controller
>     >     {
>     >         LoginEntities db = new LoginEntities();
>     >         // GET: Home
>     >         [Authorize]
>     >         public ActionResult Index()
>     >         {
>     >             if (Session.Contents.Count == 0)
>     >             {
>     >                 RedirectToAction("Login", "User");
>     >             }
>     >            
>     >            
>     >             return View();
>     >         }
>     >     }