{"action":"opened","issue":{"url":"https://api.github.com/repos/inversepath/interlock/issues/37","repository_url":"https://api.github.com/repos/inversepath/interlock","labels_url":"https://api.github.com/repos/inversepath/interlock/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/inversepath/interlock/issues/37/comments","events_url":"https://api.github.com/repos/inversepath/interlock/issues/37/events","html_url":"https://github.com/inversepath/interlock/issues/37","id":254842277,"number":37,"title":"Could not login after cookie expiration","user":{"login":"vloup","id":2750613,"avatar_url":"https://avatars3.githubusercontent.com/u/2750613?v=4","gravatar_id":"","url":"https://api.github.com/users/vloup","html_url":"https://github.com/vloup","followers_url":"https://api.github.com/users/vloup/followers","following_url":"https://api.github.com/users/vloup/following{/other_user}","gists_url":"https://api.github.com/users/vloup/gists{/gist_id}","starred_url":"https://api.github.com/users/vloup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vloup/subscriptions","organizations_url":"https://api.github.com/users/vloup/orgs","repos_url":"https://api.github.com/users/vloup/repos","events_url":"https://api.github.com/users/vloup/events{/privacy}","received_events_url":"https://api.github.com/users/vloup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-02T23:31:34Z","updated_at":"2017-09-02T23:31:34Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"By default, the generated cookie has a max-age value of 8 hours (as defined in auth.go).\r\n\r\nAfter it expires, if you interact with the UI, you are thrown back to the main login page. If you try to login, you have an \"existing session\" error message. If you restart the interlock daemon and try to login again, you have a \"Device VOLUMENAME already exists\". So, in the end, you are unable to login unless you reboot the entire system or manually do the umount.\r\n\r\nAs a solution, you could either:\r\n* Increment the cookie max-age value to 16 hours for example.\r\n* Properly close opened sessions when interlock stops.\r\n* Automatically close sessions when no activity is performed for cookie max-age time.\r\n* Renew the cookie when max-age/2 time already elapsed."}}
{"actor":{"display_login":"vloup"}}