i am trying to get the current user session from a static function, but the usObj is always null.
here is what i'm doing:
public static List<RequestTypeBL> GetRequestType(string itemNo, int requestTypeID, int claimID) {
UserSession usObj = (UserSession)HttpContext.Current.Session["UserSessionObj"];
RequestTypeBL reqTypeBL;
reqTypeBL= SERT_BO.RequestTypeBL.GetClaimRequestType(claimID, requestType, usObj.UserID, itemNo);
am i missing something? please help.
i am able to do the following from regular functions just fine:
return (UserSession)Session["UserSessionObj"];
i am seeing this behavior in our production environment only, when the same code is run in development,everything works as it should. could it have something to do with an IIS setting of some sorts?