{"action":"closed","number":237,"pull_request":{"url":"https://api.github.com/repos/maxcountryman/flask-login/pulls/237","id":46109488,"html_url":"https://github.com/maxcountryman/flask-login/pull/237","diff_url":"https://github.com/maxcountryman/flask-login/pull/237.diff","patch_url":"https://github.com/maxcountryman/flask-login/pull/237.patch","issue_url":"https://api.github.com/repos/maxcountryman/flask-login/issues/237","number":237,"state":"closed","locked":false,"title":"do not clear entire session, just Flask-Login variables (fixes #231)","user":{"login":"miguelgrinberg","id":2715854,"avatar_url":"https://avatars.githubusercontent.com/u/2715854?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelgrinberg","html_url":"https://github.com/miguelgrinberg","followers_url":"https://api.github.com/users/miguelgrinberg/followers","following_url":"https://api.github.com/users/miguelgrinberg/following{/other_user}","gists_url":"https://api.github.com/users/miguelgrinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelgrinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelgrinberg/subscriptions","organizations_url":"https://api.github.com/users/miguelgrinberg/orgs","repos_url":"https://api.github.com/users/miguelgrinberg/repos","events_url":"https://api.github.com/users/miguelgrinberg/events{/privacy}","received_events_url":"https://api.github.com/users/miguelgrinberg/received_events","type":"User","site_admin":false},"body":"This patch addresses the recurrent problem of Flask-Login clearing session data stored by the application or other extensions. I have also expanded one of the unit tests to ensure unrelated data in the session is not deleted.","created_at":"2015-09-27T21:38:40Z","updated_at":"2015-09-27T21:50:19Z","closed_at":"2015-09-27T21:50:19Z","merged_at":"2015-09-27T21:50:19Z","merge_commit_sha":"0509f4a1fc63a9b942c8316e4f143a26e1d915a5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/maxcountryman/flask-login/pulls/237/commits","review_comments_url":"https://api.github.com/repos/maxcountryman/flask-login/pulls/237/comments","review_comment_url":"https://api.github.com/repos/maxcountryman/flask-login/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maxcountryman/flask-login/issues/237/comments","statuses_url":"https://api.github.com/repos/maxcountryman/flask-login/statuses/ad8f07acaaa29fa1a888473c675080c6b855a6b0","head":{"label":"miguelgrinberg:strong-session-fix","ref":"strong-session-fix","sha":"ad8f07acaaa29fa1a888473c675080c6b855a6b0","user":{"login":"miguelgrinberg","id":2715854,"avatar_url":"https://avatars.githubusercontent.com/u/2715854?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelgrinberg","html_url":"https://github.com/miguelgrinberg","followers_url":"https://api.github.com/users/miguelgrinberg/followers","following_url":"https://api.github.com/users/miguelgrinberg/following{/other_user}","gists_url":"https://api.github.com/users/miguelgrinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelgrinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelgrinberg/subscriptions","organizations_url":"https://api.github.com/users/miguelgrinberg/orgs","repos_url":"https://api.github.com/users/miguelgrinberg/repos","events_url":"https://api.github.com/users/miguelgrinberg/events{/privacy}","received_events_url":"https://api.github.com/users/miguelgrinberg/received_events","type":"User","site_admin":false},"repo":{"id":16223025,"name":"flask-login","full_name":"miguelgrinberg/flask-login","owner":{"login":"miguelgrinberg","id":2715854,"avatar_url":"https://avatars.githubusercontent.com/u/2715854?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelgrinberg","html_url":"https://github.com/miguelgrinberg","followers_url":"https://api.github.com/users/miguelgrinberg/followers","following_url":"https://api.github.com/users/miguelgrinberg/following{/other_user}","gists_url":"https://api.github.com/users/miguelgrinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelgrinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelgrinberg/subscriptions","organizations_url":"https://api.github.com/users/miguelgrinberg/orgs","repos_url":"https://api.github.com/users/miguelgrinberg/repos","events_url":"https://api.github.com/users/miguelgrinberg/events{/privacy}","received_events_url":"https://api.github.com/users/miguelgrinberg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miguelgrinberg/flask-login","description":"Flask user session management.","fork":true,"url":"https://api.github.com/repos/miguelgrinberg/flask-login","forks_url":"https://api.github.com/repos/miguelgrinberg/flask-login/forks","keys_url":"https://api.github.com/repos/miguelgrinberg/flask-login/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miguelgrinberg/flask-login/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miguelgrinberg/flask-login/teams","hooks_url":"https://api.github.com/repos/miguelgrinberg/flask-login/hooks","issue_events_url":"https://api.github.com/repos/miguelgrinberg/flask-login/issues/events{/number}","events_url":"https://api.github.com/repos/miguelgrinberg/flask-login/events","assignees_url":"https://api.github.com/repos/miguelgrinberg/flask-login/assignees{/user}","branches_url":"https://api.github.com/repos/miguelgrinberg/flask-login/branches{/branch}","tags_url":"https://api.github.com/repos/miguelgrinberg/flask-login/tags","blobs_url":"https://api.github.com/repos/miguelgrinberg/flask-login/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miguelgrinberg/flask-login/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miguelgrinberg/flask-login/git/refs{/sha}","trees_url":"https://api.github.com/repos/miguelgrinberg/flask-login/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miguelgrinberg/flask-login/statuses/{sha}","languages_url":"https://api.github.com/repos/miguelgrinberg/flask-login/languages","stargazers_url":"https://api.github.com/repos/miguelgrinberg/flask-login/stargazers","contributors_url":"https://api.github.com/repos/miguelgrinberg/flask-login/contributors","subscribers_url":"https://api.github.com/repos/miguelgrinberg/flask-login/subscribers","subscription_url":"https://api.github.com/repos/miguelgrinberg/flask-login/subscription","commits_url":"https://api.github.com/repos/miguelgrinberg/flask-login/commits{/sha}","git_commits_url":"https://api.github.com/repos/miguelgrinberg/flask-login/git/commits{/sha}","comments_url":"https://api.github.com/repos/miguelgrinberg/flask-login/comments{/number}","issue_comment_url":"https://api.github.com/repos/miguelgrinberg/flask-login/issues/comments{/number}","contents_url":"https://api.github.com/repos/miguelgrinberg/flask-login/contents/{+path}","compare_url":"https://api.github.com/repos/miguelgrinberg/flask-login/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miguelgrinberg/flask-login/merges","archive_url":"https://api.github.com/repos/miguelgrinberg/flask-login/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miguelgrinberg/flask-login/downloads","issues_url":"https://api.github.com/repos/miguelgrinberg/flask-login/issues{/number}","pulls_url":"https://api.github.com/repos/miguelgrinberg/flask-login/pulls{/number}","milestones_url":"https://api.github.com/repos/miguelgrinberg/flask-login/milestones{/number}","notifications_url":"https://api.github.com/repos/miguelgrinberg/flask-login/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miguelgrinberg/flask-login/labels{/name}","releases_url":"https://api.github.com/repos/miguelgrinberg/flask-login/releases{/id}","created_at":"2014-01-25T02:22:24Z","updated_at":"2015-09-27T21:04:23Z","pushed_at":"2015-09-27T21:36:18Z","git_url":"git://github.com/miguelgrinberg/flask-login.git","ssh_url":"git@github.com:miguelgrinberg/flask-login.git","clone_url":"https://github.com/miguelgrinberg/flask-login.git","svn_url":"https://github.com/miguelgrinberg/flask-login","homepage":"http://flask-login.readthedocs.org/en/latest/","size":249,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"maxcountryman:master","ref":"master","sha":"6862b4e21a2f962cd4cd6d5175ba0f2bdf6ca22b","user":{"login":"maxcountryman","id":74351,"avatar_url":"https://avatars.githubusercontent.com/u/74351?v=3","gravatar_id":"","url":"https://api.github.com/users/maxcountryman","html_url":"https://github.com/maxcountryman","followers_url":"https://api.github.com/users/maxcountryman/followers","following_url":"https://api.github.com/users/maxcountryman/following{/other_user}","gists_url":"https://api.github.com/users/maxcountryman/gists{/gist_id}","starred_url":"https://api.github.com/users/maxcountryman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxcountryman/subscriptions","organizations_url":"https://api.github.com/users/maxcountryman/orgs","repos_url":"https://api.github.com/users/maxcountryman/repos","events_url":"https://api.github.com/users/maxcountryman/events{/privacy}","received_events_url":"https://api.github.com/users/maxcountryman/received_events","type":"User","site_admin":false},"repo":{"id":3687291,"name":"flask-login","full_name":"maxcountryman/flask-login","owner":{"login":"maxcountryman","id":74351,"avatar_url":"https://avatars.githubusercontent.com/u/74351?v=3","gravatar_id":"","url":"https://api.github.com/users/maxcountryman","html_url":"https://github.com/maxcountryman","followers_url":"https://api.github.com/users/maxcountryman/followers","following_url":"https://api.github.com/users/maxcountryman/following{/other_user}","gists_url":"https://api.github.com/users/maxcountryman/gists{/gist_id}","starred_url":"https://api.github.com/users/maxcountryman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxcountryman/subscriptions","organizations_url":"https://api.github.com/users/maxcountryman/orgs","repos_url":"https://api.github.com/users/maxcountryman/repos","events_url":"https://api.github.com/users/maxcountryman/events{/privacy}","received_events_url":"https://api.github.com/users/maxcountryman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maxcountryman/flask-login","description":"Flask user session management.","fork":false,"url":"https://api.github.com/repos/maxcountryman/flask-login","forks_url":"https://api.github.com/repos/maxcountryman/flask-login/forks","keys_url":"https://api.github.com/repos/maxcountryman/flask-login/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxcountryman/flask-login/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxcountryman/flask-login/teams","hooks_url":"https://api.github.com/repos/maxcountryman/flask-login/hooks","issue_events_url":"https://api.github.com/repos/maxcountryman/flask-login/issues/events{/number}","events_url":"https://api.github.com/repos/maxcountryman/flask-login/events","assignees_url":"https://api.github.com/repos/maxcountryman/flask-login/assignees{/user}","branches_url":"https://api.github.com/repos/maxcountryman/flask-login/branches{/branch}","tags_url":"https://api.github.com/repos/maxcountryman/flask-login/tags","blobs_url":"https://api.github.com/repos/maxcountryman/flask-login/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxcountryman/flask-login/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxcountryman/flask-login/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxcountryman/flask-login/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxcountryman/flask-login/statuses/{sha}","languages_url":"https://api.github.com/repos/maxcountryman/flask-login/languages","stargazers_url":"https://api.github.com/repos/maxcountryman/flask-login/stargazers","contributors_url":"https://api.github.com/repos/maxcountryman/flask-login/contributors","subscribers_url":"https://api.github.com/repos/maxcountryman/flask-login/subscribers","subscription_url":"https://api.github.com/repos/maxcountryman/flask-login/subscription","commits_url":"https://api.github.com/repos/maxcountryman/flask-login/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxcountryman/flask-login/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxcountryman/flask-login/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxcountryman/flask-login/issues/comments{/number}","contents_url":"https://api.github.com/repos/maxcountryman/flask-login/contents/{+path}","compare_url":"https://api.github.com/repos/maxcountryman/flask-login/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxcountryman/flask-login/merges","archive_url":"https://api.github.com/repos/maxcountryman/flask-login/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxcountryman/flask-login/downloads","issues_url":"https://api.github.com/repos/maxcountryman/flask-login/issues{/number}","pulls_url":"https://api.github.com/repos/maxcountryman/flask-login/pulls{/number}","milestones_url":"https://api.github.com/repos/maxcountryman/flask-login/milestones{/number}","notifications_url":"https://api.github.com/repos/maxcountryman/flask-login/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxcountryman/flask-login/labels{/name}","releases_url":"https://api.github.com/repos/maxcountryman/flask-login/releases{/id}","created_at":"2012-03-11T14:42:33Z","updated_at":"2015-09-27T04:55:05Z","pushed_at":"2015-09-27T21:50:19Z","git_url":"git://github.com/maxcountryman/flask-login.git","ssh_url":"git@github.com:maxcountryman/flask-login.git","clone_url":"https://github.com/maxcountryman/flask-login.git","svn_url":"https://github.com/maxcountryman/flask-login","homepage":"http://flask-login.readthedocs.org/en/latest/","size":1663,"stargazers_count":796,"watchers_count":796,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":243,"mirror_url":null,"open_issues_count":10,"forks":243,"open_issues":10,"watchers":796,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maxcountryman/flask-login/pulls/237"},"html":{"href":"https://github.com/maxcountryman/flask-login/pull/237"},"issue":{"href":"https://api.github.com/repos/maxcountryman/flask-login/issues/237"},"comments":{"href":"https://api.github.com/repos/maxcountryman/flask-login/issues/237/comments"},"review_comments":{"href":"https://api.github.com/repos/maxcountryman/flask-login/pulls/237/comments"},"review_comment":{"href":"https://api.github.com/repos/maxcountryman/flask-login/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maxcountryman/flask-login/pulls/237/commits"},"statuses":{"href":"https://api.github.com/repos/maxcountryman/flask-login/statuses/ad8f07acaaa29fa1a888473c675080c6b855a6b0"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"maxcountryman","id":74351,"avatar_url":"https://avatars.githubusercontent.com/u/74351?v=3","gravatar_id":"","url":"https://api.github.com/users/maxcountryman","html_url":"https://github.com/maxcountryman","followers_url":"https://api.github.com/users/maxcountryman/followers","following_url":"https://api.github.com/users/maxcountryman/following{/other_user}","gists_url":"https://api.github.com/users/maxcountryman/gists{/gist_id}","starred_url":"https://api.github.com/users/maxcountryman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxcountryman/subscriptions","organizations_url":"https://api.github.com/users/maxcountryman/orgs","repos_url":"https://api.github.com/users/maxcountryman/repos","events_url":"https://api.github.com/users/maxcountryman/events{/privacy}","received_events_url":"https://api.github.com/users/maxcountryman/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":10,"deletions":1,"changed_files":2}}