Skip to content
Snippets Groups Projects
Commit fe45cf5b authored by Piotr Gawron's avatar Piotr Gawron
Browse files

cookies expires a minute before session expires

parent 643d8439
No related branches found
No related tags found
1 merge request!67Resolve "Clicking on map with private comments might produce an error"
......@@ -51,9 +51,7 @@ public class UserController extends BaseController {
} else {
Map<String, Object> result = new HashMap<>();
final Boolean useSecureCookie = false;
final int expiryTime = (int) (token.getExpires().getTimeInMillis() - Calendar.getInstance().getTimeInMillis()) / 1000; // 24h
// in
// seconds
final int expiryTime = (int) (token.getExpires().getTimeInMillis() - Calendar.getInstance().getTimeInMillis() - 60000) / 1000;
final String cookiePath = "/";
Cookie cookie = new Cookie("MINERVA_AUTH_TOKEN", token.getId());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment