Hi,
I need to save some value in the session object to use it in several pages.
I tried to do in the following way but doesn't work when more users are logged in in the same time:
To save it
Session["CompanyID"]=CompanyID.ToString();
To retreive it:
CompanyID=Int32.Parse(Session["CompanyID"].ToString());
The username is managed in this way:
(there in myReader because I read it from a db table)
Session["user"] = myReader["user"];
FormsAuthentication.SetAuthCookie(CustLogin.UserId, false);
Please, help me, it's urgent
Thanks a lot
Luigi
I need to save some value in the session object to use it in several pages.
I tried to do in the following way but doesn't work when more users are logged in in the same time:
To save it
Session["CompanyID"]=CompanyID.ToString();
To retreive it:
CompanyID=Int32.Parse(Session["CompanyID"].ToString());
The username is managed in this way:
(there in myReader because I read it from a db table)
Session["user"] = myReader["user"];
FormsAuthentication.SetAuthCookie(CustLogin.UserId, false);
Please, help me, it's urgent
Thanks a lot
Luigi