I need to create session variables in controller with data which is sent from the view, and I need to access those session variables in anywhere in my aplication
here is my code
controller
[HttpPost]
public ActionResult AccessLogInData(Login userloginData)
{
string Id = userloginData.Id;
string userName = userloginData.userName;
string password = userloginData.password;
string Designation = userloginData.Designation;
string Supplier_Code = userloginData.Supplier_Code;
string Distributor_Code = userloginData.Distributor_Code;
string Staff_Code = userloginData.Staff_Code;
//here I need create sessions
}