M
M
maks_pain_002019-09-24 16:41:09
JavaScript
maks_pain_00, 2019-09-24 16:41:09

How to add domain to $.cookie?

There is this jQuery code:

$.cookie('jpn', true, {
   // Время хранения cookie в днях
  expires: 7,
  path: '/'
   });


how to add a domain?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Pershin, 2019-09-24
@maks_pain_00

$.cookie('jpn', true, {
   // Время хранения cookie в днях
  expires: 7,
  path: '/',
  domain: 'site.name',
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question