[WebMethod (Description="User registers here.", EnableSession = true)] public string Register (string name) { Session.Timeout = 20; //20 minutes before timingout Session.Add("name",name); return "Welcome, "+name; }