Get Session Value in Static Method

We can not be use the Session object in static method so to its problem while reading the session value in static method ,to overcome this problem we need to read session value like as shown in following code snippet: 
  1. HttpContext.Current.Session["UserName"].ToString();