Содержание

deleteCookies

Removes cookies from profile, according with specified template

Syntax

deleteCookie = function(aTemplate);

Parameters

*If the value of aTemplate.name is an empty string , then all cookies are to be removed , independently of the name value, otherwise the cookies , the value of which is equal to name aTemplate.Name will be selected.

Examples

  1. //Delete cookies related to the domain .yandex.ru
    var template = {};
    template.name = '';
    template.value = '';
    template.domain = '.yandex.ru';
    template.path = '';
    template.creation = -1;
    template.lastAccess = -1;
    template.expires = -1;
    deleteCookies(template);