There is no concept of Session variables in windows forms.
Create a Static class that holds the User name and password and any other variables needed across the application .
In your case it would be something like:
public static class LoginInfo
{
public static string UserID;
}
Now you can access the UserID simply from anywhere in your code:
MessageBox.Show(LogInfo.UserID);
Or set the values after login like
LogInfo.UserID=TextBox1.Text;
use just this type of concept.