Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé
Classe « Response »

Méthode flask.wrappers.Response.delete_cookie

Signature de la méthode delete_cookie

def delete_cookie(self, key: 'str', path: 'str | None' = '/', domain: 'str | None' = None, secure: 'bool' = False, httponly: 'bool' = False, samesite: 'str | None' = None, partitioned: 'bool' = False) -> 'None' 

Description

help(Response.delete_cookie)

Delete a cookie.  Fails silently if key doesn't exist.

:param key: the key (name) of the cookie to be deleted.
:param path: if the cookie that should be deleted was limited to a
             path, the path has to be defined here.
:param domain: if the cookie that should be deleted was limited to a
               domain, that domain has to be defined here.
:param secure: If ``True``, the cookie will only be available
    via HTTPS.
:param httponly: Disallow JavaScript access to the cookie.
:param samesite: Limit the scope of the cookie to only be
    attached to requests that are "same-site".
:param partitioned: If ``True``, the cookie will be partitioned.


Vous êtes un professionnel et vous avez besoin d'une formation ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé