'Return cookies'

def get_cookies(self):

    cookies = copy.copy(self._cookies)
    if (self._session_cookie and apps.is_installed('django.contrib.sessions')):
        cookies[settings.SESSION_COOKIE_NAME] = self.session.session_key
    return cookies
