From ca9691331fb19542477b6205024921388321829b Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Fri, 21 Aug 2015 12:02:59 +0800 Subject: Bug 1195645 - don't create a new session for every authenticated REST/BzAPI call --- Bugzilla/Auth.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Auth.pm') diff --git a/Bugzilla/Auth.pm b/Bugzilla/Auth.pm index 6583d4e8b..88eadbe19 100644 --- a/Bugzilla/Auth.pm +++ b/Bugzilla/Auth.pm @@ -172,8 +172,11 @@ sub _handle_login_result { # because the persistance information can't be re-used again. # (See Bugzilla::WebService::Server::JSONRPC for more info.) if ($self->{_info_getter}->{successful}->requires_persistence - and !Bugzilla->request_cache->{auth_no_automatic_login}) - { + and !( + Bugzilla->request_cache->{auth_no_automatic_login} + || Bugzilla->request_cache->{dont_persist_session} + ) + ) { $user->{_login_token} = $self->{_persister}->persist_login($user); } } -- cgit v1.2.3-24-g4f1b