{"action":"created","issue":{"url":"https://api.github.com/repos/Scalr/scalr/issues/61","labels_url":"https://api.github.com/repos/Scalr/scalr/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/Scalr/scalr/issues/61/comments","events_url":"https://api.github.com/repos/Scalr/scalr/issues/61/events","html_url":"https://github.com/Scalr/scalr/issues/61","id":65465691,"number":61,"title":"\"Your session became invalid\" randomly","user":{"login":"mpavlov","id":1353903,"avatar_url":"https://avatars.githubusercontent.com/u/1353903?v=3","gravatar_id":"","url":"https://api.github.com/users/mpavlov","html_url":"https://github.com/mpavlov","followers_url":"https://api.github.com/users/mpavlov/followers","following_url":"https://api.github.com/users/mpavlov/following{/other_user}","gists_url":"https://api.github.com/users/mpavlov/gists{/gist_id}","starred_url":"https://api.github.com/users/mpavlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpavlov/subscriptions","organizations_url":"https://api.github.com/users/mpavlov/orgs","repos_url":"https://api.github.com/users/mpavlov/repos","events_url":"https://api.github.com/users/mpavlov/events{/privacy}","received_events_url":"https://api.github.com/users/mpavlov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-03-31T14:31:38Z","updated_at":"2015-04-01T15:20:16Z","closed_at":null,"body":"On random pages, and not seemingly related to any previous activity, clicking on a Scalr UI item that performs a background API call results in a 403 \"Your session became invalid\" and redirects to the login screen.\r\n\r\nAt that point, attempting to login again immediately results in invalidating the session, and returning to the login screen.\r\n\r\nThe only workaround is to wait 1-5 minutes and try to login again.\r\n\r\nWe have been unable to find a reliable sequence of steps to reproduce the problem, but the following is able to reproduce it on our AWS instance with about a 90% success rate:\r\n\r\n * login as an administrator (non-LDAP) user\r\n * click on Cost Analytics\r\n * click on Budgets\r\n * click on Cost Center 01\r\n * define budgets for Q1 and Q2\r\n * expand Cost Center 01\r\n * click on Project 01\r\n * click back on Cost Center 01\r\n * more often than not, this results in being redirected to the login page, with the following in our javascript logs:\r\n\r\n```\r\nRequest URL:http://10.160.5.253/analytics/budgets/xGetBudgetInfo\r\nRequest Method:POST\r\nStatus Code:403 Forbidden\r\n```\r\n\r\nReplicated in Chrome and Safari, OS X 10.10 and 10.9.\r\n\r\nReplicated on scalr-server versions 5.1.0.oss~nightly.20150317132237.245.a3e0e5a.69f66e5~ubuntu.trusty-1 and 5.3.2.oss~nightly.20150330160556.276.d2c2a73.18b294d~ubuntu.precise-1 on Ubuntu 14.04 and 12.04.\r\n\r\nAny idea how to debug further?"},"comment":{"url":"https://api.github.com/repos/Scalr/scalr/issues/comments/88521194","html_url":"https://github.com/Scalr/scalr/issues/61#issuecomment-88521194","issue_url":"https://api.github.com/repos/Scalr/scalr/issues/61","id":88521194,"user":{"login":"krallin","id":1737686,"avatar_url":"https://avatars.githubusercontent.com/u/1737686?v=3","gravatar_id":"","url":"https://api.github.com/users/krallin","html_url":"https://github.com/krallin","followers_url":"https://api.github.com/users/krallin/followers","following_url":"https://api.github.com/users/krallin/following{/other_user}","gists_url":"https://api.github.com/users/krallin/gists{/gist_id}","starred_url":"https://api.github.com/users/krallin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krallin/subscriptions","organizations_url":"https://api.github.com/users/krallin/orgs","repos_url":"https://api.github.com/users/krallin/repos","events_url":"https://api.github.com/users/krallin/events{/privacy}","received_events_url":"https://api.github.com/users/krallin/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T15:20:16Z","updated_at":"2015-04-01T15:20:16Z","body":"Thanks @mshibla !"}}