First,I did not access HttpContext.Current.Session, and I added in below statement in global.asax.
protected void Application_PostAuthenticateRequest(object sender, EventArgs e)
{
System.Web.HttpContext.Current.SetSessionStateBehavior(SessionStateBehavior.Required);
}
After that, i could access HttpContext.Current.Session and i set a value in Session object.
But I cant access my value in another action.
For example :
Account/Login
Session["User"]="User";
Account/BlaBla
Session["User"] is null;
Why couldn't i do it ?