diff --git a/GMW_Term/WebUserControls/mod_barcode.ascx.cs b/GMW_Term/WebUserControls/mod_barcode.ascx.cs index 08666e0b..c4ec8fee 100644 --- a/GMW_Term/WebUserControls/mod_barcode.ascx.cs +++ b/GMW_Term/WebUserControls/mod_barcode.ascx.cs @@ -157,6 +157,15 @@ namespace GMW_Term.WebUserControls } else { + // provo a rifare login da operatore in cookie... + try + { + effettuaLoginOperatore(memLayer.ML.getCookieVal("UserBarcode")); + } + catch + { + logger.lg.scriviLog("Non sono riuscito a rifare login da cookie operatore", tipoLog.EXCEPTION); + } lblData.Text = traduci("Invalid Code"); txtScansione = ""; } @@ -372,6 +381,8 @@ namespace GMW_Term.WebUserControls { // salvo in sessione valore barcode memLayer.ML.setSessionVal("UserBarcode", dataIn); + // salvo anche in cookie... + memLayer.ML.setCookieVal("UserBarcode", dataIn); // verifico che il cod operatore passato sia valido per Rilpro.Anagoperatori e Soggetti2Utente httpLog(string.Format("Richiesta di login tramite barcode da {0}, IP {1}", Request.UserHostName, Request.UserHostAddress), tipoLog.STARTUP); esitoLoginTerm esito = TermClass.Ter.doUserLogin(dataIn); diff --git a/GMW_data/TermClass.cs b/GMW_data/TermClass.cs index d86bca45..f8178301 100644 --- a/GMW_data/TermClass.cs +++ b/GMW_data/TermClass.cs @@ -209,7 +209,7 @@ namespace GMW_data } catch (Exception e) { - logger.lg.scriviLog(string.Format("Errore login per il CodSoggetto {0}: eccezione {1}", CodSoggetto, e), tipoLog.FATAL); + logger.lg.scriviLog(string.Format("Errore in TermClass.doUserLogin per il CodSoggetto {0}: eccezione {1}", CodSoggetto, e), tipoLog.FATAL); } return answ; }