// In this example, the session parameter "username" is set
// after the employee successfully logs in.
SessionParameter username = new SessionParameter();
empid.Name = "username";
empid.Type = TypeCode.String;
empid.SessionField = "username";
Get moredetails
msdn[
^]