public static string getProfileImageURL()
        {
            string profile_pic_url = new BL_User().select(SessionHandler.getLoggedInUsername()).Rows[0]["profile_picture_url"].ToString();

            return((profile_pic_url == string.Empty || profile_pic_url == null) ? AppFunction.ReadSetting("DefaultProPicURL") : profile_pic_url);
        }
Ejemplo n.º 2
0
 public static void logout()
 {
     AiGrow.LoginResponse login = AiGrow.MyUser.validateUserLogout(SessionHandler.getLoggedInid(), SessionHandler.getToken());
     HttpContext.Current.Session["username"] = null;
     HttpContext.Current.Session["type"]     = null;
 }