public bool setSessionProbertyValue(string sessionName, string userID, string probertyName, string probertyValue) { SessionState sessionStateDAL = new SessionState(); bool check = false; int sessionID = sessionStateDAL.getSessionID(sessionName, userID); SessionValue sessionValue = sessionStateDAL.getSessionValue(sessionID, probertyName); if (sessionValue == null) { check = sessionStateDAL.AddSessionProbertyValue(sessionID, probertyName, probertyValue); } else { check = sessionStateDAL.alterSerssionProbertyValue(sessionValue, probertyValue); } return(check); }