mirror of
https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
synced 2025-10-29 16:14:16 +08:00
invalidate session appropriately
This commit is contained in:
@@ -65,7 +65,7 @@ public class Register extends HttpServlet {
|
||||
);
|
||||
boolean isSuccess = result.equals("Register_Success");
|
||||
if (isSuccess) {
|
||||
request.getSession().invalidate();
|
||||
session.invalidate();
|
||||
out.println(ParseUtil.parseJsonP(request, gson.toJson(new Response(Response.ResponseCode.OK, result))));
|
||||
} else {
|
||||
out.println(ParseUtil.parseJsonP(request, gson.toJson(new Response(Response.ResponseCode.REQUEST_FAILED, result))));
|
||||
|
||||
Reference in New Issue
Block a user