Advertisement
Guest User

sesja

a guest
Feb 6th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.39 KB | None | 0 0
  1. String base64String = "";
  2.                     final String base64Action = Base64Utils.encode(String.valueOf(windowCode));
  3.                     final String username = (String) this.req.getSession().getAttribute("j_username_crm");
  4.                     if ((username != null) && !username.isEmpty()) {
  5.                         final String base64Username = Base64Utils.encode(username.toLowerCase());
  6.                         final String base64Password = Base64Utils.encode((String) this.req.getSession().getAttribute("j_password_crm"));
  7.                         final String base64Ps = Base64Utils.encode(this.crmContext.get(CRM.salesPointOfBranch));
  8.                         base64String = base64Action + "," + base64Username + "," + base64Password + "," + base64Ps;
  9.                         base64String = base64String.replace("=", "");
  10.                         this.req.getSession().setAttribute("base64String", base64String);
  11.                         IframeHelper.invokeFrameset(this.req, this.resp, Frameset.DESTROY_CARD_DB, parametersTop, parametersBot);
  12.                     }
  13.                     else {
  14.                         final HttpSession s = this.req.getSession();
  15.                         s.invalidate();
  16.  
  17.                         this.req.getRequestDispatcher("/page/crm/invalidSession.jsp").forward(this.req, this.resp);
  18.                         return;
  19.                     }
  20.                     break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement