private static void SetSession(AppManagerSession appManagerSession) { if (HttpContext.Current != null) { HttpContext.Current.Session["arquitetura_session"] = appManagerSession; } }
private static AppManagerSession GetSession() { if (HttpContext.Current == null) { if (_appSession == null) { _appSession = new AppManagerSession(); } return(_appSession); } else { var appManagerSession = (AppManagerSession)HttpContext.Current.Session["arquitetura_session"]; if (appManagerSession == null) { appManagerSession = new AppManagerSession(); FormsAuthentication.SignOut(); } return(appManagerSession); } }
private static AppManagerSession GetSession() { if (HttpContext.Current == null) { if (_appSession == null) { _appSession = new AppManagerSession(); } return _appSession; } else { var appManagerSession = (AppManagerSession)HttpContext.Current.Session["arquitetura_session"]; if (appManagerSession == null) { appManagerSession = new AppManagerSession(); FormsAuthentication.SignOut(); } return appManagerSession; } }
private static void SetSession(AppManagerSession appManagerSession) { if (HttpContext.Current != null) HttpContext.Current.Session["arquitetura_session"] = appManagerSession; }