Skip to content

Commit c05cbdf

Browse files
committed
Some small changes to the android module
1 parent cf7f32e commit c05cbdf

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<%@ page language="java" contentType="application/json" pageEncoding="UTF-8"%>
2+
<%@ include file="setcookie.jsp" %>
3+
{"mime-types":[]}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<%@ page language="java" contentType="text/html" pageEncoding="UTF-8"%>
2+
<%@ include file="setcookie.jsp" %>
3+
<% response.setHeader("Location", "../login-mobile.jsp"); response.setStatus(302); %>
4+

logicaldoc-android/src/main/webapp/android/setcookie.jsp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
String sid = SessionManager.get().getSessionId(request);
77
if (sid != null) {
88
Cookie sidCookie = new Cookie("ldoc-sid", sid);
9+
sidCookie.setMaxAge(1800);
10+
sidCookie.setHttpOnly(true);
911
response.addCookie(sidCookie);
1012
}
11-
} catch (Throwable t) {
12-
t.printStackTrace();
13-
}
13+
} catch (Throwable t) {}
1414
}
1515
%>
1616
<% setCookie(request, response); %>

0 commit comments

Comments
 (0)