guessed_db is only computed by the /web controller, so even if the provided db match the guessed_db we should save it in the http session. Because all rpc call made before the authentication wont compute the guessed_db, so the request.db will be wrong for those calls. bzr revid: al@openerp.com-20131110010411-s7ermjwmfbile1ix