How can I get the value of a session variable inside a static method?

HttpContext.Current.Session["..."]

HttpContext.Current gets you the current … well, Http Context; from which you can access: Session, Request, Response etc

Leave a Comment