Merge pull request #2267 from dionysiosarvanitis/fix/_update_db

Issue #2086 Session_cookie's _update_db not guaranteed to update