Namespaces are not really relevant here, the issue is that you need to access the variable from a different class. The way you have "global" variables that are specific to the user is the Session, so store the value in a Session variable and have your other class access the Session variable.
Your login function
Session["myData"] = someIntValue;
Your Value function
int x;
if (Session["myData"] == null)
{
}
else
{
x = (int)Session["myData"];
}