def load_cookies(self):
if not self.session or not self.cache:<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>restored = []<EOL>for key, value in self.cache.get_all().items():<EOL><INDENT>if key.startswith("<STR_LIT>"):<EOL><INDENT>cookie = requests.cookies.create_cookie(**value)<EOL>self.session.http.cookies.set_cookie(cookie)<EOL>restored.append(cookie.name)<EOL><DEDENT><DEDENT>if restored:<EOL><INDENT>self.logger.debug("<STR_LIT>".format("<STR_LIT:U+002CU+0020>".join(restored)))<EOL><DEDENT>return restored<EOL>
Load any stored cookies for the plugin that have not expired.

:return: list of the restored cookie names