getSession赋值

  String randomFormKey = "FK" + StringUtil.getRandomString(8, ConstantUtil.REDPACKET_NUMBER_SEEDSOURCE);
  request.getSession().setAttribute(randomFormKey, randomFormKey);
  webOut(response, randomFormKey);

 

//获取SESSION

 

request.getSession().removeAttribute(formKey);

posted @ 2017-01-12 12:37  JLCUI  阅读(133)  评论(0编辑  收藏  举报